Base64Codec_encode

Encodes an array of bytes as a NULL-terminated string of UTF-16 characters using base64 encoding.

Syntax

C++

 #include "Base64Codec.h"
 
 DIRXML_EXPORT 
 unicode * IFAPI Base64Codec_encode (
    unsigned char   *data, 
    int              off, 
    int              len);
 
 

Parameters

data
(IN) Points to the array of bytes to encode.
off
(IN) Specifies the starting offset in the array.
len
(IN) Specifies the number of bytes to encode.

Return Values

If successful, returns a pointer to a UTF-16 string.

Remarks

The returned string must be freed with a call to the base64EncodeFree method.