Skip to main content

encode

Function encode 

Source
pub fn encode(
    packet: &Packet<'_>,
    out: &mut Vec<u8>,
) -> Result<usize, EncodeError>
Expand description

Encode a packet, appending the wire bytes to out.

Returns the number of bytes appended.