System.VarintBitConverter.ToUInt16 C# (CSharp) Method

ToUInt16() public static method

Returns 16-bit usigned value from varint encoded array of bytes.
public static ToUInt16 ( byte bytes ) : ushort
bytes byte Varint encoded array of bytes.
return ushort
        public static ushort ToUInt16(byte[] bytes)
        {
            return (ushort)ToTarget(bytes, 16);
        }