Expand description
DPlus 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_
link1 - Encode a LINK1 connect request (5 bytes).
- encode_
link2 - Encode a LINK2 login packet (28 bytes).
- encode_
link1_ ack - Encode the server’s LINK1 ACK echo (5 bytes — same shape as LINK1).
- encode_
link2_ reply - Encode an 8-byte LINK2 reply.
- encode_
poll - Encode a 3-byte keepalive poll.
- encode_
poll_ echo - Encode the server’s poll echo (3 bytes).
- encode_
unlink - Encode an UNLINK request (5 bytes).
- encode_
unlink_ ack - Encode the server’s UNLINK ACK echo (5 bytes — same shape as UNLINK).
- encode_
voice_ data - Encode a 29-byte voice data packet.
- encode_
voice_ eot - Encode a 32-byte voice EOT packet.
- encode_
voice_ header - Encode a 58-byte voice header.