Expand description
A safe encoder and decoder for the standard basE91 binary-to-text encoding.
The crate provides allocating one-shot encode and decode APIs when the
alloc feature is enabled, caller-provided-buffer APIs through
encode_into and decode_into, and streaming APIs through Encoder
and Decoder. The default std feature includes alloc; with both
features disabled, the crate supports no_std use without an allocator.
Lenient or strict decoding is selected with DecodeOptions.
Structs§
- Decode
Options - Decoder policy options.
- Decoder
- Stateful standard basE91 decoder.
- Encoder
- Stateful standard basE91 encoder.
- Output
TooSmall - A caller-visible output capacity error.
Enums§
- Decode
Error - Error returned by the decoding APIs.
- Encode
Error - Error returned by the fallible encoding APIs.
Constants§
- VERSION
- The version of this core crate.
Functions§
- decode
- Decodes standard basE91 from
inputinto a newly allocated byte vector. - decode_
into - Decodes from caller-provided storage.
- encode
- Encodes
inputas standard basE91 into a newly allocated byte vector. - encode_
into - Encodes into caller-provided storage.
- max_
decoded_ len - Returns a decoded-length upper bound for
input_lenbytes. - max_
encoded_ len - Returns an encoded-length upper bound for
input_lenbytes.