Containers_leb128.DecodeTurn an unsigned integer into a signed one.
See https://en.wikipedia.org/wiki/Variable-length_quantity#Zigzag_encoding
val skip : Byte_slice.t -> int -> intskip slice off reads an integer at offset off, and returns how many bytes the integer occupies.
val u64 : Byte_slice.t -> int -> int64 * intu64 slice off reads an integer at offset off, and returns a pair v, n_consumed. v is the read integer, n_consumed is the number of bytes consumed during reading.
val i64 : Byte_slice.t -> int -> int64 * intRead a signed int64 by reading a u64 and zigzag decoding it
val int_truncate : Byte_slice.t -> int -> int * intLike i64 but truncates to integer. Returns a pair v, n_consumed.
val uint_truncate : Byte_slice.t -> int -> int * intLike u64 but truncates to integer.