System.VarintBitConverter.ToInt32 C# (CSharp) Method

ToInt32() public static method

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