Module encode

Module encode 

Source
Expand description

DCS 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 a 519-byte LINK request.
encode_connect_nak
Encode a 14-byte connect NAK reply.
encode_connect_unlink
Encode a 19-byte UNLINK request.
encode_poll_reply
Encode a 17-byte poll (keepalive) reply.
encode_poll_request
Encode a 17-byte poll (keepalive) request.
encode_voice
Encode a 100-byte voice frame.