v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::PrimitiveArray Class Reference

#include <v8-primitive.h>

Inheritance diagram for v8::PrimitiveArray:
Collaboration diagram for v8::PrimitiveArray:

Public Member Functions

int Length () const
 
void Set (Isolate *isolate, int index, Local< Primitive > item)
 
Local< PrimitiveGet (Isolate *isolate, int index)
 
- Public Member Functions inherited from v8::Data
bool IsValue () const
 
bool IsModule () const
 
bool IsModuleRequest () const
 
bool IsFixedArray () const
 
bool IsPrivate () const
 
bool IsObjectTemplate () const
 
bool IsFunctionTemplate () const
 
bool IsContext () const
 

Static Public Member Functions

static Local< PrimitiveArrayNew (Isolate *isolate, int length)
 
static V8_INLINE PrimitiveArrayCast (Data *data)
 

Static Private Member Functions

static void CheckCast (Data *obj)
 

Detailed Description

An array to hold Primitive values. This is used by the embedder to pass host defined options to the ScriptOptions during compilation.

This is passed back to the embedder as part of HostImportModuleDynamicallyCallback for module loading.

Definition at line 58 of file v8-primitive.h.

Member Function Documentation

◆ Cast()

static V8_INLINE PrimitiveArray * v8::PrimitiveArray::Cast ( Data * data)
inlinestatic

Definition at line 65 of file v8-primitive.h.

◆ CheckCast()

void v8::PrimitiveArray::CheckCast ( v8::Data * that)
staticprivate

Definition at line 2072 of file api.cc.

Here is the call graph for this function:

◆ Get()

Local< Primitive > v8::PrimitiveArray::Get ( Isolate * isolate,
int index )

Definition at line 2061 of file api.cc.

Here is the call graph for this function:

◆ Length()

int v8::PrimitiveArray::Length ( ) const

Definition at line 2045 of file api.cc.

Here is the call graph for this function:

◆ New()

Local< PrimitiveArray > v8::PrimitiveArray::New ( Isolate * isolate,
int length )
static

Definition at line 2035 of file api.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Set()

void v8::PrimitiveArray::Set ( Isolate * isolate,
int index,
Local< Primitive > item )

Definition at line 2049 of file api.cc.

Here is the call graph for this function:

The documentation for this class was generated from the following files: