Skip to main content

Module simple_encoder

Module simple_encoder 

Source
Expand description

The SimpleEncoder provides a simpler interface than the Encoder to implement a custom RMT encoder.

The encoder will take care of allocating a target buffer for the output symbols and will call a user-provided callback (EncoderCallback) to fill the buffer with symbols.

Structs§

NotEnoughSpace
The encoder was unable to encode all the input data into the provided buffer, it might have encoded some data (or it didn’t), but there remains more to encode.
SimpleEncoder
This type represents the simple encoder, it wraps a EncoderCallback to delegate the encoding work to it.
SimpleEncoderConfig
Configuration for the SimpleEncoder.
SymbolBuffer
A helper to write symbols into a buffer, tracking how many symbols were written.

Traits§

EncoderCallback
Trait that is implemented by types that can be used as callbacks for the SimpleEncoder.