SharpCifs.Smb.SmbComNegotiate.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)
		{
			byte[] dialects;
			try
			{
                //dialects = Runtime.GetBytesForString(Dialects, "ASCII");
                dialects = Runtime.GetBytesForString(Dialects, "UTF-8");
			}
			catch (UnsupportedEncodingException)
			{
				return 0;
			}
			Array.Copy(dialects, 0, dst, dstIndex, dialects.Length);
			return dialects.Length;
		}