BloombergLP::bdlde::Base64EncoderOptions::custom

Return a Base64EncoderOptions object with the specified attributes.

Synopsis

Declared in <bdlde_base64encoderoptions.h>

static
Base64EncoderOptions
custom(
    int maxLineLength,
    Base64Alphabet::Enum alphabet,
    bool padded);

Description

Return a Base64EncoderOptions object having the specified maxLineLength, alphabet, and isPadded attribute values. The behavior is undefined unless 0 <= maxLineLength and alphabet is a defined value of Base64Alphabet::Enum.

Return Value

a Base64EncoderOptions object with the specified attributes

Parameters

NameDescription
maxLineLengthmaximum Base64 characters per line (0 disables)
alphabetalphabet used for encoding
paddedwhether output is padded with '=' characters