Skip to main content

encode_vec

Function encode_vec 

Source
pub fn encode_vec(num: u64) -> Vec<u8> 
Expand description

Encodes a u64 with a variable-byte encoding in a Vec.

The length of the resultant Vec is the encoding length of num.