Pepper_56_C_interfaces
Pepper_56_C_interfaces
|
#include <pp_array_output.h>
Public Attributes | |
PP_ArrayOutput_GetDataBuffer | GetDataBuffer |
void * | user_data |
A structure that defines a way for the browser to return arrays of data to the plugin. The browser can not allocate memory on behalf of the plugin because the plugin and browser may have different allocators.
Array output works by having the browser call to the plugin to allocate a buffer, and then the browser will copy the contents of the array into that buffer.
In C, you would typically implement this as follows:
PP_ArrayOutput_GetDataBuffer PP_ArrayOutput::GetDataBuffer |
A pointer to the allocation function that the browser will call.
void* PP_ArrayOutput::user_data |
Data that is passed to the allocation function. Typically, this is used to communicate how the data should be stored.