buffer_base64_encode(buffer,offset,size)

From ENIGMA

Jump to: navigation, search

Description

Encodes the contents at the given offset of the given size in the given buffer into a base64 string. Base64 encoding is commonly used to transmit media such as videos or music over the internet in binary format.

Parameters

Parameter Data Type Description
buffer integer index of the buffer
offset unsigned offset into the buffer where the contents to encode starts at, in bytes
size unsigned size of the contents to encode, in bytes

Return Values

void: This function does not return anything.

Example Call

// demonstrates encoding the entire contents of a buffer to base64
var encoded;
encoded = buffer_base64_encode(buff, 0, buffer_get_size(buff));
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox