|
Pepper_56_C_interfaces
Pepper_56_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.
| 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_Resources 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. | 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. | uint32_t(* PPB_ResourceArray_Dev_0_1::GetSize)(PP_Resource resource_array) |
Gets the array size.
| [in] | resource_array | The resource array. |
| 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.