nn::nex::String::Base64ToByteArray Member Function

Syntax

static int Base64ToByteArray(
     const String & strSrc,
     qByte * pbDest,
     qUnsignedInt32 uiDestLength
);

Parameters

Name Description
in strSrc The input base64 string.
out pbDest Pointer to the buffer for storing the output data.
in uiDestLength Size of the buffer specified by pbDest.

Return Values

Returns whether conversion succeeded.

Value Description
-1 Conversion failed. (The output buffer is not big enough. Not a base64 string.)
Other Buffer size after conversion.

Description

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.

Revision History

2012/07/16
Revised sloppy notations.
2012/06/08
Initial version.

CONFIDENTIAL