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
Name |
Description |
out |
destination for decoded output bytes |
numOut |
receives the number of bytes written |
numIn |
receives the number of input bytes consumed |
begin |
beginning of the Base64 input range |
end |
end of the Base64 input range (exclusive) |
maxNumOut |
maximum bytes to write; negative means no limit |
Created with MrDocs