variable_int_len

Function variable_int_len 

Source
pub fn variable_int_len(value: u32) -> usize
Expand description

Calculates the number of bytes needed to encode a value (compatibility function)

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