Expand description
Provides the GeneralPurpose engine and associated config types.
See preconfigured engines like STANDARD_NO_PAD or STANDARD_NO_PAD_INDIFFERENT.
ModulesΒ§
- decode π
- decode_
suffix π
StructsΒ§
- General
Purpose - A general-purpose base64 engine.
- General
Purpose Config - Contains configuration parameters for base64 encoding and decoding.
ConstantsΒ§
- INVALID_
VALUE π - 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
GeneralPurposeengine using thealphabet::STANDARDbase64 alphabet andPADconfig. - STANDARD_
NO_ PAD - A
GeneralPurposeengine using thealphabet::STANDARDbase64 alphabet andNO_PADconfig. - STANDARD_
NO_ PAD_ INDIFFERENT - A
GeneralPurposeengine using thealphabet::STANDARDbase64 alphabet andNO_PAD_INDIFFERENTconfig. - STANDARD_
PAD_ INDIFFERENT - A
GeneralPurposeengine using thealphabet::STANDARDbase64 alphabet andPAD_INDIFFERENTconfig. - URL_
SAFE - A
GeneralPurposeengine using thealphabet::URL_SAFEbase64 alphabet andPADconfig. - URL_
SAFE_ NO_ PAD - A
GeneralPurposeengine using thealphabet::URL_SAFEbase64 alphabet andNO_PADconfig. - URL_
SAFE_ NO_ PAD_ INDIFFERENT - A
GeneralPurposeengine using thealphabet::URL_SAFEbase64 alphabet andNO_PAD_INDIFFERENTconfig. - URL_
SAFE_ PAD_ INDIFFERENT - A
GeneralPurposeengine using thealphabet::URL_SAFEbase64 alphabet andPAD_INDIFFERENTconfig.
FunctionsΒ§
- decode_
table π - Returns a table mapping base64 bytes as the lookup index to either:
- encode_
helper π - Scalar base64 encode of
inputintooutput, returning the number of bytes written. - encode_
scalar_ πtail - Scalar encode of
input[input_index..]intooutput[output_index..], resuming from a 3-byte group boundary. Returns the total number of output bytes written. - encode_
table π - Returns a table mapping a 6-bit index to the ASCII byte encoding of the index
- read_
u64 π
Type AliasesΒ§
- Scalar
- A purely scalar base64 engine that never uses hardware-specific vector instructions.