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

Complete decoding and flush retained output to `out` with limits&period;

== Synopsis

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

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

== Description

Terminate decoding for this decoder&semi; write any retained output to the specified `out` buffer&period; The argument `maxNumOut` is the limit on the number of bytes to output&semi; if `maxNumOut` is negative, no limit is imposed&period; Load into the (optionally) specified `numOut` the number of output bytes produced&period; Return 0 on success, a positive number of retained bytes if the output limit was reached, and a negative value otherwise&period; See the preceding overload for full contract details&period;

== Return Value

0 on success, a positive number of retained bytes if the output limit was reached, and a negative value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *out*
| destination for any retained decoded bytes
| *numOut*
| if non&hyphen;null, receives the number of bytes written
| *maxNumOut*
| maximum bytes to write&semi; negative means no limit
|===


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