Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
PPB_Buffer_Dev_0_4 Struct Reference

Public Attributes

PP_Resource(* Create )(PP_Instance instance, uint32_t size_in_bytes)
 
PP_Bool(* IsBuffer )(PP_Resource resource)
 
PP_Bool(* Describe )(PP_Resource resource, uint32_t *size_in_bytes)
 
void *(* Map )(PP_Resource resource)
 
void(* Unmap )(PP_Resource resource)
 

Member Data Documentation

PP_Resource(* PPB_Buffer_Dev_0_4::Create)(PP_Instance instance, uint32_t size_in_bytes)

Allocates a buffer of the given size in bytes. The return value will have a non-zero ID on success, or zero on failure. Failure means the module handle was invalid. The buffer will be initialized to contain zeroes.

PP_Bool(* PPB_Buffer_Dev_0_4::Describe)(PP_Resource resource, uint32_t *size_in_bytes)

Gets the size of the buffer. Returns PP_TRUE on success, PP_FALSE if the resource is not a buffer. On failure, |*size_in_bytes| is not set.

PP_Bool(* PPB_Buffer_Dev_0_4::IsBuffer)(PP_Resource resource)

Returns PP_TRUE if the given resource is a Buffer. Returns PP_FALSE if the resource is invalid or some type other than a Buffer.

void*(* PPB_Buffer_Dev_0_4::Map)(PP_Resource resource)

Maps this buffer into the plugin address space and returns a pointer to the beginning of the data.

void(* PPB_Buffer_Dev_0_4::Unmap)(PP_Resource resource)

Unmaps this buffer.


The documentation for this struct was generated from the following file: