[#BloombergLP-bdlde-Base64Encoder-endConvert-08]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Base64Encoder.adoc[Base64Encoder]::endConvert
:relfileprefix: ../../../
:mrdocs:

Terminate encoding for this encoder&semi; write any retained output (e&period;g&period;, from a previous call to `convert`) 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; Load into the (optionally) specified `numOut` the number of output bytes produced&period; Return 0 if output was successfully completed and a non&hyphen;zero 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 encoder in the error state, and return an error status&period;

== Synopsis

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

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


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