[#BloombergLP-bdlde-HexEncoder-endConvert-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/HexEncoder.adoc[HexEncoder]::endConvert
:relfileprefix: ../../../
:mrdocs:

`endConvert` overloads

== Synopses

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

Terminate encoding for this encoder&semi; write any retained output (e&period;g&period;, from a previous call to `convert` with a non&hyphen;zero output limit argument) 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 a non&hyphen;negative value on success and a negative value otherwise&period; A successful return status indicates the number of characters that would be output if `endConvert` were called subsequently with no output limit&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 `reset`&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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class OUTPUT&lowbar;ITERATOR&gt;
int
xref:BloombergLP/bdlde/HexEncoder/endConvert-03.adoc[endConvert](OUTPUT&lowbar;ITERATOR out);
----

[.small]#xref:BloombergLP/bdlde/HexEncoder/endConvert-03.adoc[_» more&period;&period;&period;_]#

Complete encoding, writing any pending output to `out` subject to `maxNumOut`, and load the number of bytes written into `numOut`&period; See the preceding overload for full contract details&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class OUTPUT&lowbar;ITERATOR&gt;
int
xref:BloombergLP/bdlde/HexEncoder/endConvert-02.adoc[endConvert](
    OUTPUT&lowbar;ITERATOR out,
    int* numOut,
    int maxNumOut = &hyphen;1);
----

[.small]#xref:BloombergLP/bdlde/HexEncoder/endConvert-02.adoc[_» more&period;&period;&period;_]#


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