Function ssh_format::to_bytes

source ยท
pub fn to_bytes<T>(value: &T) -> Result<Vec<u8>>
where T: Serialize,
Expand description

Return a byte array with the first 4 bytes representing the size of the rest of the serialized message.

See doc of from_bytes for examples.