Module general_purpose

Source
Expand description

Provides the GeneralPurpose engine and associated config types.

ModulesΒ§

decode πŸ”’
decode_suffix πŸ”’

StructsΒ§

GeneralPurpose
A general-purpose base64 engine.
GeneralPurposeConfig
Contains configuration parameters for base64 encoding and decoding.

ConstantsΒ§

INVALID_VALUE πŸ”’
NO_PAD
Don’t add padding when encoding, and require no padding when decoding.
PAD
Include padding bytes when encoding, and require that they be present when decoding.
STANDARD
A GeneralPurpose engine using the alphabet::STANDARD base64 alphabet and PAD config.
STANDARD_NO_PAD
A GeneralPurpose engine using the alphabet::STANDARD base64 alphabet and NO_PAD config.
URL_SAFE
A GeneralPurpose engine using the alphabet::URL_SAFE base64 alphabet and PAD config.
URL_SAFE_NO_PAD
A GeneralPurpose engine using the alphabet::URL_SAFE base64 alphabet and NO_PAD config.

FunctionsΒ§

decode_table πŸ”’
Returns a table mapping base64 bytes as the lookup index to either:
encode_table πŸ”’
Returns a table mapping a 6-bit index to the ASCII byte encoding of the index
read_u64 πŸ”’