Complete decoding and flush retained output to out with limits.

Synopsis

Declared in <bdlde_base64decoder.h>

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

Description

Terminate decoding for this decoder; write any retained output to the specified out buffer. The argument maxNumOut is the limit on the number of bytes to output; if maxNumOut is negative, no limit is imposed. Load into the (optionally) specified numOut the number of output bytes produced. Return 0 on success, a positive number of retained bytes if the output limit was reached, and a negative value otherwise. See the preceding overload for full contract details.

Return Value

0 on success, a positive number of retained bytes if the output limit was reached, and a negative value otherwise

Parameters

Name

Description

out

destination for any retained decoded bytes

numOut

if non‐null, receives the number of bytes written

maxNumOut

maximum bytes to write; negative means no limit

Created with MrDocs