Module encode Copy item path Source EncodeSliceError Errors that can occur while encoding into a slice. 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. encode Deprecated Encode arbitrary octets as base64 using the STANDARD
engine . encode_engine Deprecated Encode arbitrary octets as base64 using the provided Engine
into a new String
. encode_engine_slice Deprecated Encode arbitrary octets as base64 into a supplied slice. encode_engine_string Deprecated 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.