Expand description
base64
Structs§
- Config
- Contains configuration parameters for base64 encoding
Enums§
- Character
Set - Available encoding character sets
- Decode
Error - DecodeError
Constants§
- STANDARD
- Standard character set with padding.
Functions§
- add_
padding - Write padding characters.
output
is the slice where padding should be written, of length at least 2. - decode
- decode
- decode_
config - decode_config
- decode_
config_ buf - decode_config_buf
- encode
- Encode arbitrary octets as base64.
Returns a String.
Convenience for
encode_config(input, base64::STANDARD);
. - encode_
config - Encode arbitrary octets as base64. Returns a String.
- encode_
config_ buf - Encode arbitrary octets as base64. Writes into the supplied output buffer, which will grow the buffer if needed.
- encode_
config_ slice - Encode arbitrary octets as base64. Writes into the supplied output buffer.
- encode_
to_ slice - Encode input bytes to utf8 base64 bytes. Does not pad.
output
must be long enough to hold the encodedinput
without padding. Returns the number of bytes written. - encoded_
size - calculate the base64 encoded string size, including padding if appropriate