Module encode

Source

Enumsยง

EncodeSliceError
Errors that can occur while encoding into a slice.

Functionsยง

add_padding ๐Ÿ”’
Write padding characters. unpadded_output_len is the size of the unpadded but base64 encoded data. output is the slice where padding should be written, of length at least 2.
encodeDeprecated
Encode arbitrary octets as base64 using the STANDARD engine.
encode_engineDeprecated
Encode arbitrary octets as base64 using the provided Engine into a new String.
encode_engine_sliceDeprecated
Encode arbitrary octets as base64 into a supplied slice.
encode_engine_stringDeprecated
Encode arbitrary octets as base64 into a supplied String.
encode_with_padding ๐Ÿ”’
B64-encode and pad (if configured).
encoded_len
Calculate the base64 encoded length for a given input length, optionally including any appropriate padding bytes.