Skip to main content

decode

Function decode 

Source
pub fn decode(bytes: &[u8]) -> Result<Packet<'_>, PacketError>
Expand description

Decode and validate all fields and exact full consumption before allocation.