[#BloombergLP-bdlde-Base64Encoder-endConvert-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Base64Encoder.adoc[Base64Encoder]::endConvert :relfileprefix: ../../../ :mrdocs: Finish encoding and write any retained output to `out`. == Synopsis Declared in `<bdlde_base64encoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class OUTPUT_ITERATOR> int endConvert(OUTPUT_ITERATOR out); ---- == Description Terminate encoding for this encoder; write any retained output (e.g., from a previous call to `convert`) to the specified `out` buffer. Return 0 if output was successfully completed and a non‐zero value otherwise. Any retained bytes are available on a subsequent call to `endConvert`. Once this method is called, no additional input may be supplied without an intervening call to `resetState`; once this method returns a zero status, a subsequent call will place this encoder in the error state, and return an error status. == Return Value 0 if output was successfully completed, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *out* | output iterator for any retained encoded characters |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#