Skip to main content

varint_bytes

Function varint_bytes 

Source
pub const fn varint_bytes(v: i32) -> ([u8; 5], usize)
Expand description

Encodes v as a VarInt into a fixed buffer; returns the buffer and the used length.