Return the encoded line count for inputLength under options.

Synopsis

Declared in <bdlde_base64encoder.h>

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

Description

Return the exact number of encoded lines that would result from an input byte sequence of the specified inputLength provided to the convert method of an encoder configured with the specified options. The behavior is undefined if inputLength is large enough to overflow the result.

Return Value

the exact number of encoded lines for inputLength under options

Parameters

Name

Description

options

encoder configuration used for the line calculation

inputLength

number of input bytes to encode

Created with MrDocs