BloombergLP::bdlde::Base64Decoder::convert

Decode Base64 input from the range [begin, end)] and write the resulting bytes to the specified out buffer. Load into the optionally specified numOut and numIn the number of output bytes produced and input bytes consumed, respectively. Optionally specify maxNumOut as the limit on the number of bytes to output. Return a non-negative value on success and a negative value otherwise.

Synopsis

Declared in <bdlde_base64decoder.h>

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);

Specializations

Name
convert<char*, char const*>
convert<unsigned char*, unsigned char const*>