pub fn to_byte_buf<T: ?Sized + Serialize>(
    value: &T,
    buf: &mut Vec<u8>
) -> Result<usize>
Expand description

Serializes value to buf and returns the amount of serialized bytes