Module dec

Module dec 

Source

Structs§

CobsDecoder
The CobsDecoder type is used to decode a stream of bytes to a given mutable output slice. This is often useful when heap data structures are not available, or when not all message bytes are received at a single point in time.
DecodeReport
A report of the source and destination bytes used during in-place decoding

Enums§

DecodeError
DecodeResult
DecodeResult represents the possible non-error outcomes of pushing an encoded data byte into the DecoderState state machine
DecoderState
The DecoderState is used to track the current state of a streaming decoder. This struct does not contain the output buffer (or a reference to one), and can be used when streaming the decoded output to a custom data type.

Functions§

add 🔒
decode
Decodes the source buffer into the dest buffer.
decode_in_place
Decodes a message in-place.
decode_in_place_report
Decodes a message in-place.
decode_in_place_with_sentinel
Decodes a message in-place using an arbitrary sentinel value.
decode_with_sentinel
Decodes the source buffer into the dest buffer using an arbitrary sentinel value.