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

Decode the sequence of input characters starting at the specified `begin` position up to, but not including, the specified `end` position, writing any resulting output characters to the specified `out` buffer&period; Optionally specify the `maxNumOut` limit on the number of bytes to output&semi; if `maxNumOut` is negative, no limit is imposed&period; If the `maxNumOut` limit is reached, no further input will be consumed&period; Load into the (optionally) specified `numOut` and `numIn` the number of output bytes produced and input bytes consumed, respectively&period; Return a non&hyphen;negative value on success, &hyphen;1 on an input error, and &hyphen;2 if the `endConvert` method has already been called without an intervening `resetState` call&period; A return status of &hyphen;1 indicates that the data at `begin` &plus; `numIn` constitutes an irrecoverably undecodable input sequence (i&period;e&period;, the data cannot be extended to form any valid encoding)&period; A positive return status indicates the number of valid processed output bytes retained by this decoder and not written to `out` because `maxNumOut` has been reached&semi; these bytes are available for output if this method is called with appropriate input&period; Note that it is recommended that after all calls to `convert` are finished, the `endConvert` method be called to complete the encoding of any unprocessed input characters that do not complete a 3&hyphen;byte sequence&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,
    INPUT&lowbar;ITERATOR begin,
    INPUT&lowbar;ITERATOR end);
----


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