Return the encoded line count for inputLength and maxLineLength.

Synopsis

Declared in <bdlde_base64encoder.h>

static
int
encodedLines(
    int inputLength,
    int maxLineLength);

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 maxLineLength. The behavior is undefined unless 0 <= inputLength and 0 <= maxLineLength. Note that if maxLineLength is 0, no CRLF characters will appear in the output. Note also that the number of encoded bytes need not be the number of output bytes.

DEPRECATED: use the overload with options instead.

Return Value

the exact number of encoded lines for inputLength and maxLineLength

Parameters

Name

Description

inputLength

number of input bytes to encode

maxLineLength

maximum encoded line length before a soft break

Created with MrDocs