BloombergLP::bdlde::Base64Encoder::encodedLines

encodedLines overloads

Synopses

Declared in <bdlde_base64encoder.h>

Return the MIME-style encoded line count for inputLength.

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

Return the encoded line count for inputLength and maxLineLength.

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

Return the encoded line count for inputLength under options.

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

Return Value

  • the exact number of encoded lines for inputLength with MIME line length
  • the exact number of encoded lines for inputLength and maxLineLength
  • the exact number of encoded lines 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 line calculation