BloombergLP::bdlde::HexDecoder::convert

Decode hexadecimal input characters into binary output.

Synopsis

Declared in <bdlde_hexdecoder.h>

template<
    class OUTPUT_ITERATOR,
    class INPUT_ITERATOR>
int
convert(
    OUTPUT_ITERATOR out,
    INPUT_ITERATOR begin,
    INPUT_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. Return 0 on success and a negative value otherwise. 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.

Return Value

0 on success, and a negative value otherwise

Parameters

NameDescription
outoutput iterator for decoded bytes
beginbeginning of the input range
endend of the input range (exclusive)