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

Complete decoding and flush any retained output to `out`&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);
----

== Description

Terminate decoding for this decoder&semi; write any retained output (e&period;g&period;, from a previous call to `convert` with a non&hyphen;zero optionally specified `maxNumOut` argument) to the specified `out` buffer&semi; encode any unprocessed input characters that do not complete a 3&hyphen;byte sequence&period; Return 0 on success, the positive number of bytes _still_ retained by this decoder if an output limit was reached, and a negative value otherwise&period; Any retained bytes are available on a subsequent call to `endConvert`&period; Once this method is called, no additional input may be supplied without an intervening call to `resetState`&semi; once this method returns a zero status, a subsequent call will place this decoder in the error state, and return an error status&period;

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *out*
| destination for any retained decoded bytes
|===


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