encodedLines overloads

Synopses

Declared in <bdlde_base64encoder.h>

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.

static
int
encodedLines(int inputLength);

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.

static
int
encodedLines(
    int inputLength,
    int maxLineLength);

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.

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

Created with MrDocs