BloombergLP::bdlde::Base64Decoder

This class implements a mechanism capable of converting data of arbitrary length from its corresponding Base64 representation.

Synopsis

Declared in <bdlde_base64decoder.h>

class Base64Decoder;

Type Aliases

NameDescription
Alphabet Alias for Base64Alphabet::Enum.

Member Functions

NameDescription
Base64Decoder [constructor]Constructors
~Base64Decoder [destructor]Destroy this object.
alphabet Return the alphabet supplied at construction of this object.
convert convert overloads
endConvert endConvert overloads
ignoreMode Return the ignoreMode state of this decoder.
isAcceptable Return whether the input so far is syntactically complete.
isDone Return whether decoding is finished and no further input is allowed.
isError Return true if there is no possibility of achieving an "acceptable" result, and false otherwise.
isInitialState Return true if this instance is in the initial state (i.e., as if no input had been consumed), and false otherwise.
isMaximal Return true if the current input is acceptable and any additional input (other than endConvert) would be an error, and false otherwise.
isPadded Return true if this object is configured for padded input and false otherwise.
isUnrecognizedAnError Return whether unrecognized characters are treated as errors.
options Return a Base64DecoderOptions object representing the configuration of this decoder.
outputLength Return the total length of the output emitted thus far.
resetState Reset this instance to its initial state (i.e., as if no input had been consumed).

Static Member Functions

NameDescription
maxDecodedLength Return the maximum number of decoded bytes for an input of inputLength.

Static Data Members

NameDescription
e_BASIC Standard Base64 alphabet constant.
e_URL URL-safe Base64 alphabet constant.