System.VarintBitConverter.ToInt64 C# (CSharp) Method

ToInt64() public static method

Returns 64-bit signed value from varint encoded array of bytes.
public static ToInt64 ( byte bytes ) : long
bytes byte Varint encoded array of bytes.
return long
        public static long ToInt64(byte[] bytes)
        {
            var zigzag = ToTarget(bytes, 64);
            return DecodeZigZag(zigzag);
        }