Function vlq::decode [] [src]

pub fn decode<B>(input: &mut B) -> Result<i64> where
    B: Iterator<Item = u8>, 

Decode a single VLQ value from the input, returning the value.

Range

Supports all numbers that can be represented by a sign bit and a 63 bit absolute value: [-(2^63 - 1), 2^63 - 1].

Note that i64::MIN = -(2^63) cannot be represented in that form, and this function will return Error::Overflowed when attempting to decode it.