v8  10.1.124 (node 18.2.0)
V8 is Google's open source JavaScript engine
PrimitiveArray Class Reference

#include <v8-primitive.h>

Inheritance diagram for PrimitiveArray:
Collaboration diagram for 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 Data
bool IsValue () const
 
bool IsModule () 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)
 

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 57 of file v8-primitive.h.

Member Function Documentation

◆ Cast()

static V8_INLINE PrimitiveArray* Cast ( Data data)
inlinestatic

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

◆ Get()

Local<Primitive> Get ( Isolate isolate,
int  index 
)

◆ Length()

int Length ( ) const

◆ New()

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

◆ Set()

void Set ( Isolate isolate,
int  index,
Local< Primitive item 
)

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