OctoTorrent.Client.Messages.Message.WriteAscii C# (CSharp) Method

WriteAscii() public static method

public static WriteAscii ( byte buffer, int offset, string text ) : int
buffer byte
offset int
text string
return int
        public static int WriteAscii(byte[] buffer, int offset, string text)
        {
            for (var i = 0; i < text.Length; i++)
                Write(buffer, offset + i, (byte) text[i]);
            return text.Length;
        }