BloombergLP::bdlde::Base64Encoder::encodedLines

Return the MIME-style encoded line count for inputLength.

Synopsis

Declared in <bdlde_base64encoder.h>

static
int
encodedLines(int 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 with the maximum allowable line-length of the output being 76 characters (as recommended by the MIME standard). The behavior is undefined unless 0 <= inputLength. 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 with MIME line length

Parameters

NameDescription
inputLengthnumber of input bytes to encode