Skip to main content

encode_array

Function encode_array 

Source
pub fn encode_array(num: u64) -> ([u8; 10], usize)
Expand description

Encodes a u64 with a variable-byte encoding in an array.

The array is always length 10. Additinally, the actual size of the vbyte is returned.