pub fn to_byte_buf<T: ?Sized + Serialize>( value: &T, buf: &mut Vec<u8>, ) -> Result<usize>
Serializes value to buf and returns the amount of serialized bytes
value
buf