Skip to main content

encode

Function encode 

Source
pub fn encode(packet: Packet<'_>) -> Result<Vec<u8>, PacketError>
Expand description

Host-side encoding with the same shape checks as the borrowed decoder.