BloombergLP::bdlde::Base64Encoder::encodedLength

encodedLength overloads

Synopses

Declared in <bdlde_base64encoder.h>

Return the MIME-style encoded byte length for inputLength.

static
int
encodedLength(int inputLength);
» more...

Return the encoded byte length for inputLength and maxLineLength.

static
int
encodedLength(
    int inputLength,
    int maxLineLength);
» more...

Return the encoded byte length for inputLength under options.

static
std::size_t
encodedLength(
    EncoderOptions const& options,
    std::size_t inputLength);
» more...

Return Value

  • the exact number of encoded bytes for inputLength with MIME line length
  • the exact number of encoded bytes for inputLength and maxLineLength
  • the exact number of encoded bytes for inputLength under options

Parameters

NameDescription
inputLengthnumber of input bytes to encode
maxLineLengthmaximum encoded line length before a soft break
optionsencoder configuration used for the length calculation