encodedLength overloads
Synopses
Declared in <bdlde_base64encoder.h>
Return the exact number of encoded bytes 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.
static
int
encodedLength(int inputLength);
Return the exact number of encoded bytes 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
encodedLength(
int inputLength,
int maxLineLength);
Return the exact number of encoded bytes 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 for the result to overflow a size_t.
static
std::size_t
encodedLength(
EncoderOptions const& options,
std::size_t inputLength);
Created with MrDocs