Return the encoded byte length for inputLength under options.
Synopsis
Declared in <bdlde_base64encoder.h>
static
std::size_t
encodedLength(
EncoderOptions const& options,
std::size_t inputLength);
Description
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.
Return Value
the exact number of encoded bytes for inputLength under options
Parameters
Name |
Description |
options |
encoder configuration used for the length calculation |
inputLength |
number of input bytes to encode |
Created with MrDocs