SharpCifs.Smb.SmbComSessionSetupAndX.WriteBytesWireFormat C# (CSharp) Method

WriteBytesWireFormat() private method

private WriteBytesWireFormat ( byte dst, int dstIndex ) : int
dst byte
dstIndex int
return int
		internal override int WriteBytesWireFormat(byte[] dst, int dstIndex)
		{
			int start = dstIndex;
			if (_blob != null)
			{
				Array.Copy(_blob, 0, dst, dstIndex, _blob.Length);
				dstIndex += _blob.Length;
			}
			else
			{
				Array.Copy(_lmHash, 0, dst, dstIndex, _lmHash.Length);
				dstIndex += _lmHash.Length;
				Array.Copy(_ntHash, 0, dst, dstIndex, _ntHash.Length);
				dstIndex += _ntHash.Length;
				dstIndex += WriteString(_accountName, dst, dstIndex);
				dstIndex += WriteString(_primaryDomain, dst, dstIndex);
			}
            dstIndex += WriteString(SmbConstants.NativeOs, dst, dstIndex);
            dstIndex += WriteString(SmbConstants.NativeLanman, dst, dstIndex);
			return dstIndex - start;
		}