encodedLines overloads

Synopses

Declared in <bdlde_base64encoder.h>

Return the MIME‐style encoded line count for inputLength.

static
int
encodedLines(int inputLength);

Return the encoded line count for inputLength and maxLineLength.

static
int
encodedLines(
    int inputLength,
    int maxLineLength);

Return the encoded line count for inputLength under options.

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

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

Name

Description

inputLength

number of input bytes to encode

maxLineLength

maximum encoded line length before a soft break

options

encoder configuration used for the line calculation

Created with MrDocs