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

Decode hexadecimal input characters into binary output&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class OUTPUT&lowbar;ITERATOR,
    class INPUT&lowbar;ITERATOR&gt;
int
convert(
    OUTPUT&lowbar;ITERATOR out,
    INPUT&lowbar;ITERATOR begin,
    INPUT&lowbar;ITERATOR end);
----

== Description

Append pending output (if any) addressed by the specified `out`, then consume and decode input from the specified `begin` up to but not including the specified `end`&period; Return 0 on success and a negative value otherwise&period; Note that calling this method after `endConvert` has been invoked without an intervening `reset` call will place this instance in an error state, and return an error status&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)
|===


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