Expand description
TDS packet framing helpers.
Structs§
- Packet
Header - TDS packet header.
- Packet
Message - A decoded TDS message assembled from one or more packets.
- Packet
Status - TDS packet status byte.
- Packet
Type - TDS packet type byte.
Enums§
- Packet
Frame Error - Error returned while framing or deframing TDS packets.
- Packet
Header Error - Error returned while decoding a TDS packet header.
Constants§
- MAX_
PACKET_ LEN - Maximum encoded TDS packet length. The packet header stores this as a u16.
- PACKET_
HEADER_ LEN - Length in bytes of a TDS packet header.
Functions§
- encode_
message - Encodes a message payload into one or more TDS packets.
- try_
decode_ message - Tries to decode one complete TDS message from the front of
input.