Crate base64 [] [src]

Structs

Config

Contains configuration parameters for base64 encoding

Enums

CharacterSet

Available encoding character sets

DecodeError
LineEnding
LineWrap

Statics

MIME
STANDARD
URL_SAFE
URL_SAFE_NO_PAD

Functions

decode

Decode from string reference as octets. Returns a Result containing a Vec. Convenience decode_config(input, base64::STANDARD);.

decode_config

Decode from string reference as octets. Returns a Result containing a Vec.

decode_config_buf

Decode from string reference as octets. Writes into the supplied buffer to avoid allocation. Returns a Result containing an empty tuple, aka ().

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 buffer to avoid allocations.