Expand description
Utilities to help decoding packet lines
Modules§
Enums§
- Error
- The error used in the
decode
module - 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_bytes
packet line prefix provided in hexadecimal form and check it for validity. - streaming
- Decode
data
as packet line while reporting whether the data is complete or not using aStream
. - to_
data_ line - Obtain a
PacketLine
fromdata
after assuringdata
is small enough to fit.