static int Base64ToByteArray( const qChar * szASrc, qUnsignedInt32 uiSrcLength, qByte * pbDest, qUnsignedInt32 uiDestLength );
Name | Description | |
---|---|---|
in | szASrc |
Pointer to the input base64 string. |
in | uiSrcLength |
Length of the input base64 string. Must be a multiple of 4. The null terminator is not included. |
out | pbDest |
Pointer to the buffer for storing the output data. |
in | uiDestLength |
Size of the buffer specified by pbDest . |
Value | Description |
---|---|
-1 | Conversion failed. (The output buffer is not big enough.) |
Other | Buffer size after conversion. |
Converts a base-64 format into binary data.
If NULL
is specified for pbDest
, the function returns the (theoretical) required size of pbDest
for conversion and does not actually convert the data.
CONFIDENTIAL