Expand description
Utilities to help decoding packet lines
Modules§
Enums§
- Error
- The error used in the
decodemodule - Packet
Line OrWanted Size - The result of
hex_prefix()indicating either a special packet line or the amount of wanted bytes - Stream
- A utility return type to support incremental parsing of packet lines.
Functions§
- all_
at_ once - Decode an entire packet line from data or fail.
- hex_
prefix - Decode the
four_bytespacket line prefix provided in hexadecimal form and check it for validity. - streaming
- Decode
dataas packet line while reporting whether the data is complete or not using aStream. - to_
data_ line - Obtain a
PacketLinefromdataafter assuringdatais small enough to fit.