Module encode

Module encode 

Source
Expand description

DExtra packet encoders.

Every encoder writes into a caller-supplied &mut [u8] and returns the number of bytes written. Hot-path encoding is allocation-free.

Functionsยง

encode_connect_ack
Encode a 14-byte connect ACK reply.
encode_connect_link
Encode an 11-byte LINK connect request.
encode_connect_nak
Encode a 14-byte connect NAK reply.
encode_poll
Encode a 9-byte keepalive poll.
encode_poll_echo
Encode a 9-byte poll echo (server-side reply to a client poll).
encode_unlink
Encode an 11-byte UNLINK request.
encode_voice_data
Encode a 27-byte voice data packet.
encode_voice_eot
Encode a 27-byte voice EOT packet.
encode_voice_header
Encode a 56-byte voice header.