Name
hw_EncodeBase64 -- encode data into the Base64 format (V6.0)
Synopsis
void hw_EncodeBase64(UBYTE *src, int srclen, UBYTE *dst, int *dstlen,
                         struct hwTagList *tags);
Function
This function reads arbitrary data from a memory buffer and encodes it into the Base64 format. The data will be read from src up until srclen bytes have been read. The encoded bytes will be written to the dst buffer. Make sure that this buffer is large enough to hold the encoded Base64 data. After encoding, hw_EncodeBase64() will also write the output length to dstlen. Note that you must set dstlen to 0 before calling this function because hw_EncodeBase64() won't do that.

Designer compatibility
Supported since Designer 5.0

Inputs
src
pointer to arbitrary memory data
srclen
number of bytes to read from pointer
dst
buffer to receive the encoded Base64 data
dstlen
pointer to an int which will receive the length of the encoded data; must be set to 0 by you!
tags
reserved for future use, pass NULL for now

Show TOC