Skip to main content

Module general_purpose

Module general_purpose 

Source
Expand description

Provides the GeneralPurpose engine and associated config types.

See preconfigured engines like STANDARD_NO_PAD or STANDARD_NO_PAD_INDIFFERENT.

Structs§

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

Constants§

NO_PAD
Don’t add padding when encoding, and require that there is no padding when decoding.
NO_PAD_INDIFFERENT
Don’t add padding when encoding, and allow input with or without padding when decoding.
PAD
Include padding bytes when encoding, and require that they be present when decoding.
PAD_INDIFFERENT
Include padding bytes when encoding, but allow input with or without padding 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.
STANDARD_NO_PAD_INDIFFERENT
A GeneralPurpose engine using the alphabet::STANDARD base64 alphabet and NO_PAD_INDIFFERENT config.
STANDARD_PAD_INDIFFERENT
A GeneralPurpose engine using the alphabet::STANDARD base64 alphabet and PAD_INDIFFERENT 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.
URL_SAFE_NO_PAD_INDIFFERENT
A GeneralPurpose engine using the alphabet::URL_SAFE base64 alphabet and NO_PAD_INDIFFERENT config.
URL_SAFE_PAD_INDIFFERENT
A GeneralPurpose engine using the alphabet::URL_SAFE base64 alphabet and PAD_INDIFFERENT config.

Type Aliases§

Scalar
A purely scalar base64 engine that never uses hardware-specific vector instructions.