monero_io

Function varint_len

Source
pub fn varint_len<V: VarInt>(varint: V) -> usize
Expand description

The amount of bytes this number will take when serialized as a VarInt.

This function will panic if the VarInt exceeds u64::MAX.