SharpCifs.Smb.TransCallNamedPipe.WriteDataWireFormat C# (CSharp) Method

WriteDataWireFormat() private method

private WriteDataWireFormat ( byte dst, int dstIndex ) : int
dst byte
dstIndex int
return int
		internal override int WriteDataWireFormat(byte[] dst, int dstIndex)
		{
			if ((dst.Length - dstIndex) < _pipeDataLen)
			{
				if (Log.Level >= 3)
				{
					Log.WriteLine("TransCallNamedPipe data too long for buffer");
				}
				return 0;
			}
			Array.Copy(_pipeData, _pipeDataOff, dst, dstIndex, _pipeDataLen);
			return _pipeDataLen;
		}