[][src]Function wasabi_leb128::max_bytes

pub const fn max_bytes<T>() -> usize

Maximum number of bytes that the LEB128 encoding of values of type T can take.

For example:

assert_eq!(wasabi_leb128::max_bytes::<u8>(), 2);
assert_eq!(wasabi_leb128::max_bytes::<i32>(), 5);
assert_eq!(wasabi_leb128::max_bytes::<u64>(), 10);