Skip to main content

Crate fastbase91_core

Crate fastbase91_core 

Source
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§

DecodeOptions
Decoder policy options.
Decoder
Stateful standard basE91 decoder.
Encoder
Stateful standard basE91 encoder.
OutputTooSmall
A caller-visible output capacity error.

Enums§

DecodeError
Error returned by the decoding APIs.
EncodeError
Error returned by the fallible encoding APIs.

Constants§

VERSION
The version of this core crate.

Functions§

decode
Decodes standard basE91 from input into a newly allocated byte vector.
decode_into
Decodes from caller-provided storage.
encode
Encodes input as 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_len bytes.
max_encoded_len
Returns an encoded-length upper bound for input_len bytes.