Skip to main content

encoded_len

Function encoded_len 

Source
pub const fn encoded_len(b: u8) -> usize
Expand description

Returns the total encoded length announced by a vlen prefix byte.

Prefix-varint first bytes announce their length through the count of leading one bits; binary-length prefixes carry it in the low nibble.