Pepper_31_C_interfaces
|
#include <ppb_resource_array_dev.h>
Public Attributes | |
PP_Resource(* | Create )(PP_Instance instance, const PP_Resource elements[], uint32_t size) |
PP_Bool(* | IsResourceArray )(PP_Resource resource) |
uint32_t(* | GetSize )(PP_Resource resource_array) |
PP_Resource(* | GetAt )(PP_Resource resource_array, uint32_t index) |
A resource array holds a list of resources and retains a reference to each of them.
Definition at line 34 of file ppb_resource_array_dev.h.
PP_Resource(* PPB_ResourceArray_Dev_0_1::Create)(PP_Instance instance, const PP_Resource elements[], uint32_t size) |
Creates a resource array. Note: It will add a reference to each of the elements.
[in] | elements | PP_Resource s to be stored in the created resource array. |
[in] | size | The number of elements. |
PP_Resource
corresponding to a resource array if successful; 0 if failed. Definition at line 46 of file ppb_resource_array_dev.h.
PP_Resource(* PPB_ResourceArray_Dev_0_1::GetAt)(PP_Resource resource_array, uint32_t index) |
Gets the element at the specified position. Note: It doesn't add a reference to the returned resource for the caller.
[in] | resource_array | The resource array. |
[in] | index | An integer indicating a position in the array. |
PP_Resource
. Returns 0 if the index is out of range. Definition at line 76 of file ppb_resource_array_dev.h.
uint32_t(* PPB_ResourceArray_Dev_0_1::GetSize)(PP_Resource resource_array) |
Gets the array size.
[in] | resource_array | The resource array. |
Definition at line 66 of file ppb_resource_array_dev.h.
PP_Bool(* PPB_ResourceArray_Dev_0_1::IsResourceArray)(PP_Resource resource) |
Determines if the provided resource is a resource array.
[in] | resource | A PP_Resource corresponding to a generic resource. |
PP_Bool
that is PP_TRUE
if the given resource is a resource array, otherwise PP_FALSE
. Definition at line 58 of file ppb_resource_array_dev.h.