[#BloombergLP-bdlde-HexDecoder-convert-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/HexDecoder.adoc[HexDecoder]::convert
:relfileprefix: ../../../
:mrdocs:

`convert` overloads

== Synopses

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

Decode hexadecimal input characters into binary output&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class OUTPUT&lowbar;ITERATOR,
    class INPUT&lowbar;ITERATOR&gt;
int
xref:BloombergLP/bdlde/HexDecoder/convert-09.adoc[convert](
    OUTPUT&lowbar;ITERATOR out,
    INPUT&lowbar;ITERATOR begin,
    INPUT&lowbar;ITERATOR end);
----

[.small]#xref:BloombergLP/bdlde/HexDecoder/convert-09.adoc[_» more&period;&period;&period;_]#

Decode hexadecimal input characters into binary output with limits&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class OUTPUT&lowbar;ITERATOR,
    class INPUT&lowbar;ITERATOR&gt;
int
xref:BloombergLP/bdlde/HexDecoder/convert-05.adoc[convert](
    OUTPUT&lowbar;ITERATOR out,
    int* numOut,
    int* numIn,
    INPUT&lowbar;ITERATOR begin,
    INPUT&lowbar;ITERATOR end,
    int maxNumOut = &hyphen;1);
----

[.small]#xref:BloombergLP/bdlde/HexDecoder/convert-05.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, and a negative value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *out*
| output iterator for decoded bytes
| *begin*
| beginning of the input range
| *end*
| end of the input range (exclusive)
| *numOut*
| receives the number of output bytes produced
| *numIn*
| receives the number of input bytes consumed
| *maxNumOut*
| maximum output bytes to emit&semi; negative means no limit
|===


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