BloombergLP::bdlde::HexEncoder::endConvert

Complete encoding with an output count and limit.

Synopsis

Declared in <bdlde_hexencoder.h>

template<class OUTPUT_ITERATOR>
int
endConvert(
    OUTPUT_ITERATOR out,
    int* numOut,
    int maxNumOut = -1);

Description

Write any pending output to out subject to maxNumOut, and load the number of bytes written into numOut. See the preceding overload for full contract details.

Return Value

a non-negative value on success (characters that would be output if called again with no limit), and a negative value otherwise

Parameters

NameDescription
outdestination iterator for any pending output
numOutnumber of output bytes produced
maxNumOutmaximum output bytes to write; negative means no limit