[#BloombergLP-bdlde-Base64Encoder-encodedLength-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Base64Encoder.adoc[Base64Encoder]::encodedLength
:relfileprefix: ../../../
:mrdocs:

Return the encoded byte length for `inputLength` under `options`&period;

== Synopsis

Declared in `&lt;bdlde&lowbar;base64encoder&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::size&lowbar;t
encodedLength(
    xref:BloombergLP/bdlde/Base64Encoder.adoc[EncoderOptions] const& options,
    std::size&lowbar;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`&period; The behavior is undefined if `inputLength` is large enough for the result to overflow a `size&lowbar;t`&period;

== Return Value

the exact number of encoded bytes for `inputLength` under `options`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *options*
| encoder configuration used for the length calculation
| *inputLength*
| number of input bytes to encode
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
