[#BloombergLP-bdlde-Base64Encoder-endConvert-0b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Base64Encoder.adoc[Base64Encoder]::endConvert :relfileprefix: ../../../ :mrdocs: `endConvert` overloads == Synopses Declared in `<bdlde_base64encoder.h>` Terminate encoding for this encoder; write any retained output (e.g., from a previous call to `convert`) to the specified `out` buffer. Optionally specify the `maxNumOut` limit on the number of bytes to output; if `maxNumOut` is negative, no limit is imposed. Load into the (optionally) specified `numOut` the number of output bytes produced. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class OUTPUT_ITERATOR> int xref:BloombergLP/bdlde/Base64Encoder/endConvert-08.adoc[endConvert](OUTPUT_ITERATOR out); ---- [.small]#xref:BloombergLP/bdlde/Base64Encoder/endConvert-08.adoc[_» more..._]# Same as the preceding `endConvert` overload, also loading `numOut`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class OUTPUT_ITERATOR> int xref:BloombergLP/bdlde/Base64Encoder/endConvert-0c.adoc[endConvert]( OUTPUT_ITERATOR out, int* numOut, int maxNumOut = ‐1); ---- [.small]#xref:BloombergLP/bdlde/Base64Encoder/endConvert-0c.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#