BloombergLP::bdlde::Base64Encoder::Base64Encoder

Constructors

Synopses

Declared in <bdlde_base64encoder.h>

Create a Base64 encoder in the initial state, with the 'isPadded' option set, a 'maxLineLength' of 76, and the specified 'alphabet'.

explicit
Base64Encoder(Alphabet alphabet);
» more...

Create a Base64 encoder configured from the specified options.

explicit
Base64Encoder(EncoderOptions const& options = EncoderOptions::mime());
» more...

Create a Base64 encoder in the initial state, with the 'isPadded' option set and the two specified options.

explicit
Base64Encoder(
    int maxLineLength,
    Alphabet alphabet = e_BASIC);
» more...

Parameters

NameDescription
alphabetBase64 alphabet to use for encoding
optionsencoder configuration (line length, alphabet, padding)
maxLineLengthmaximum encoded line length before a soft break