pub unsafe fn size(n: u32) -> u8
Expand description
Calculate the size in bytes of the value encoded as a varint.
§Safety
Only call this on u32 that are less than 0x3F_FF_FF_FF.
Calling this on a large integer will return a size of 4 which is technically incorrect because the integer is non-encodable.