decode_variable_int

Function decode_variable_int 

Source
pub fn decode_variable_int<B: Buf>(buf: &mut B) -> Result<u32>
Expand description

Decodes a variable byte integer from the buffer (compatibility function)

This function provides compatibility with the old variable_byte module API. Prefer using VariableInt::decode(buf)?.value() for new code.

ยงErrors

Returns an error if decoding fails