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

Complete encoding with an output count and limit&period;

== Synopsis

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

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

== Description

Write 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;

== Return Value

a non&hyphen;negative value on success (characters that would be output if called again with no limit), and a negative value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *out*
| destination iterator for any pending output
| *numOut*
| number of output bytes produced
| *maxNumOut*
| maximum output bytes to write&semi; negative means no limit
|===


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