ec_base64_encode
Name
ec_base64_encode — Perform Base64 encoding of a string
Synopsis
#include "util.h"
| int **ec_base64_encode** ( | src, | |
| | src_len, | |
| | dest, | |
| | dest_len); | |
const char * <var class="pdparam">src</var>;
int <var class="pdparam">src_len</var>;
const char * <var class="pdparam">dest</var>;
int <var class="pdparam">dest_len</var>;
Description
Perform Base64 encoding of a string.
- src
-
The buffer containing the string to Base64 encode.
- src_len
-
The length of the string to encode.
- dest
-
The buffer to store the resultant Base64 encoded string.
- dest_len
-
The length of the buffer.
This function returns the number of bytes required in the encoding of the string. If the buffer size determined by dest_len is shorter than what is needed to encode the src string then 0 is returned.
It is legal to call this function in any thread.