System.VarintBitConverter.GetVarintBytes C# (CSharp) Method

GetVarintBytes() public static method

Returns the specified 16-bit unsigned value as varint encoded array of bytes.
public static GetVarintBytes ( ushort value ) : byte[]
value ushort 16-bit unsigned value
return byte[]
        public static byte[] GetVarintBytes(ushort value)
        {
            return GetVarintBytes((ulong)value);
        }

Same methods

VarintBitConverter::GetVarintBytes ( byte value ) : byte[]
VarintBitConverter::GetVarintBytes ( int value ) : byte[]
VarintBitConverter::GetVarintBytes ( long value ) : byte[]
VarintBitConverter::GetVarintBytes ( short value ) : byte[]
VarintBitConverter::GetVarintBytes ( uint value ) : byte[]
VarintBitConverter::GetVarintBytes ( ulong value ) : byte[]