FromBase64String

nn::util::Base64::FromBase64String Member Function

Syntax

static nn::Result FromBase64String(
     const char * pSrc,
     void * pDst,
     size_t sizeDst,
     size_t * pNum
);

Arguments

Name Description
in pSrc Pointer to base-64 format string entry.
out pDst Pointer to buffer for storing the output data.
in sizeDst Size of the buffer specified by pDst.
out pNum Pointer storing the number of characters actually output.

Return Values

Returns an indication of whether the conversion was successful.

Description

Converts a base-64 format string into binary data.

The number of bytes written to the destination buffer is written to *pNum.

This function parses the entered string according to the following rules:

One of the following errors is returned when the conversion fails:

The conversion process proceeds until the failure occurs, and *pNum gets the number of bytes that were written before the failure.

Revision History

2011/12/19
Initial version.

CONFIDENTIAL