Function encode_with_size

Source
pub fn encode_with_size(object: &impl Serialize) -> Vec<u8> 
Expand description

Encodes an object as a series of bytes, tacking on the size of the data as a u64 at the front

§Arguments

  • object - the object to encode