Function octets::varint_len

source ·
pub const fn varint_len(v: u64) -> usize
Expand description

Returns how many bytes it would take to encode v as a variable-length integer.