System.VarintBitConverter.GetVarintBytes C# (CSharp) Метод

GetVarintBytes() публичный статический Метод

Returns the specified 16-bit signed value as varint encoded array of bytes.
public static GetVarintBytes ( short value ) : byte[]
value short 16-bit signed value
Результат byte[]
        public static byte[] GetVarintBytes(short value)
        {
            var zigzag = EncodeZigZag(value, 16);
            return GetVarintBytes((ulong)zigzag);
        }

Same methods

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