BloombergLP::bdlde::HexEncoder::convert

convert overloads

Synopses

Declared in <bdlde_hexencoder.h>

Encode input characters to hexadecimal output.

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

Encode input characters to hexadecimal 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

a non-negative value on success, and a negative value otherwise

Parameters

NameDescription
outdestination iterator for encoded output
beginbeginning of the input range to encode
endend of the input range (one past the last element)
numOutnumber of output bytes produced
numInnumber of input bytes consumed
maxNumOutmaximum output bytes to write; negative means no limit