[#BloombergLP-bdlde-Base64Decoder-convert-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Base64Decoder.adoc[Base64Decoder]::convert
:relfileprefix: ../../../
:mrdocs:

Decode Base64 input from the range `&lsqb;begin, end)&rsqb;` and write the resulting bytes to the specified `out` buffer&period; Load into the optionally specified `numOut` and `numIn` the number of output bytes produced and input bytes consumed, respectively&period; Optionally specify `maxNumOut` as the limit on the number of bytes to output&period; Return a non&hyphen;negative value on success and a negative value otherwise&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class OUTPUT&lowbar;ITERATOR,
    class INPUT&lowbar;ITERATOR&gt;
int
convert(
    OUTPUT&lowbar;ITERATOR out,
    int* numOut,
    int* numIn,
    INPUT&lowbar;ITERATOR begin,
    INPUT&lowbar;ITERATOR end,
    int maxNumOut = &hyphen;1);
----

== Specializations

[cols="1"]
|===
| Name
| xref:BloombergLP/bdlde/Base64Decoder/convert-0c.adoc[`convert&lt;char*, char const*&gt;`] 
| xref:BloombergLP/bdlde/Base64Decoder/convert-01.adoc[`convert&lt;unsigned char*, unsigned char const*&gt;`] 
|===



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