Pepper_47_C_interfaces
Public Attributes | List of all members
PP_VarValue Union Reference

#include <pp_var.h>

Collaboration diagram for PP_VarValue:
Collaboration graph

Public Attributes

PP_Bool as_bool
 
int32_t as_int
 
double as_double
 
int64_t as_id
 

Detailed Description

The PP_VarValue union stores the data for any one of the types listed in the PP_VarType enum.

Definition at line 121 of file pp_var.h.

Member Data Documentation

PP_Bool PP_VarValue::as_bool

If type is PP_VARTYPE_BOOL, as_bool represents the value of this PP_Var as PP_Bool.

Definition at line 127 of file pp_var.h.

Referenced by PP_MakeBool().

double PP_VarValue::as_double

If type is PP_VARTYPE_DOUBLE, as_double represents the value of this PP_Var as double.

Definition at line 139 of file pp_var.h.

Referenced by PP_MakeDouble().

int64_t PP_VarValue::as_id

If type is PP_VARTYPE_STRING, PP_VARTYPE_OBJECT, PP_VARTYPE_ARRAY, PP_VARTYPE_DICTIONARY, PP_VARTYPE_ARRAY_BUFFER, or PP_VARTYPE_RESOURCE, as_id represents the value of this PP_Var as an opaque handle assigned by the browser. This handle is guaranteed never to be 0, so a module can initialize this ID to 0 to indicate a "NULL handle."

Definition at line 149 of file pp_var.h.

int32_t PP_VarValue::as_int

If type is PP_VARTYPE_INT32, as_int represents the value of this PP_Var as int32_t.

Definition at line 133 of file pp_var.h.

Referenced by PP_MakeInt32().


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