buffer_base64_decode(str)
Jump to navigation
Jump to search
Description
This function creates a new buffer to store the bytes decoded from a base64 encoded string str
and returns a handle to it.
Also see:
Parameters
Parameter | Data Type | Description |
---|---|---|
str | std::string |
The string containing the base64 encoded data |
Return Values
buffer_t
: The handle to the buffer containing the decoded data
Example Call
// demonstrates decoding a base64 encoded registration key from an ini file
var buff;
ini_open("settings.ini");
buff = buffer_base64_decode(ini_read_string("RegKey", "Main", ""));
ini_close();