BloombergLP::bdlde::Base64Decoder::convert<unsigned char*, unsigned char const*>

Decode Base64 input for unsigned char * iterators.

Synopsis

Declared in <bdlde_base64decoder.h>

template<>
int
convert<unsigned char*, unsigned char const*>(
    unsigned char* out,
    int* numOut,
    int* numIn,
    unsigned char const* begin,
    unsigned char const* end,
    int maxNumOut = -1);

Description

Specialization of convert for contiguous unsigned char buffers. Delegates to the char * specialization. See the primary convert template for full contract details.

Return Value

non-negative value on success, -1 on input error, and -2 if endConvert has already been called without an intervening resetState

Parameters

NameDescription
outdestination for decoded output bytes
numOutreceives the number of bytes written
numInreceives the number of input bytes consumed
beginbeginning of the Base64 input range
endend of the Base64 input range (exclusive)
maxNumOutmaximum bytes to write; negative means no limit