Function monero_io::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.