BloombergLP::bdlde::HexDecoder::convert

convert overloads

Synopses

Declared in <bdlde_hexdecoder.h>

Decode hexadecimal input characters into binary output.

template<
    class OUTPUT_ITERATOR,
    class INPUT_ITERATOR>
int
convert(
    OUTPUT_ITERATOR out,
    INPUT_ITERATOR begin,
    INPUT_ITERATOR end);
» more...

Decode hexadecimal input characters into binary output with limits.

template<
    class OUTPUT_ITERATOR,
    class INPUT_ITERATOR>
int
convert(
    OUTPUT_ITERATOR out,
    int* numOut,
    int* numIn,
    INPUT_ITERATOR begin,
    INPUT_ITERATOR end,
    int maxNumOut = -1);
» more...

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)
numOutreceives the number of output bytes produced
numInreceives the number of input bytes consumed
maxNumOutmaximum output bytes to emit; negative means no limit