Incog.Messaging.IncogStream.WriteUInt16 C# (CSharp) Method

WriteUInt16() private method

Write a 2-byte unsigned integer, unencrypted, to the stream.
private WriteUInt16 ( ushort value ) : void
value ushort A 2-byte unsigned integer to write.
return void
        private void WriteUInt16(ushort value)
        {
            byte[] bytes = BitConverter.GetBytes(value);

            for (int i = 0; i < bytes.Length; i++)
            {
                this.innerStream.WriteByte(bytes[i]);
            }
        }