Skip to main content

encode_into

Function encode_into 

Source
pub fn encode_into(
    packet: Packet<'_>,
    output: &mut [u8],
) -> Result<usize, PacketError>
Expand description

Encode into caller-owned storage with exactly the same wire bytes as encode. Bounds and mandatory fields are checked before the first write. No allocation or packet-supplied authentication is performed.