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

#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)
 

Detailed Description

A resource array holds a list of resources and retains a reference to each of them.

Member Data Documentation

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.

Parameters
[in]elementsPP_Resources to be stored in the created resource array.
[in]sizeThe number of elements.
Returns
A 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.

Parameters
[in]resource_arrayThe resource array.
[in]indexAn integer indicating a position in the array.
Returns
A 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.

Parameters
[in]resource_arrayThe resource array.
Returns
How many elements are there in the array.
PP_Bool(* PPB_ResourceArray_Dev_0_1::IsResourceArray)(PP_Resource resource)

Determines if the provided resource is a resource array.

Parameters
[in]resourceA PP_Resource corresponding to a generic resource.
Returns
A PP_Bool that is PP_TRUE if the given resource is a resource array, otherwise PP_FALSE.

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