v8 14.1.146 (node 25.0.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
CppHeapExternal Class Reference

#include <v8-cpp-heap-external.h>

Inheritance diagram for CppHeapExternal:
Collaboration diagram for CppHeapExternal:

Public Member Functions

template<typename T >
T * Value (Isolate *isolate, CppHeapPointerTagRange tag_range) const
 
- Public Member Functions inherited from 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
 
bool IsCppHeapExternal () const
 

Static Public Member Functions

template<typename T >
static Local< CppHeapExternalNew (Isolate *isolate, T *value, CppHeapPointerTag tag)
 
static V8_INLINE CppHeapExternalCast (Data *data)
 

Detailed Description

A JavaScript value that wraps a cppgc::GarbageCollected<T> object allocated on the managed C++ heap (CppHeap). This type of value is mainly used to associate C++ data structures which aren't exposed to JavaScript with JavaScript objects.

Definition at line 23 of file v8-cpp-heap-external.h.

Member Function Documentation

◆ Cast()

static V8_INLINE CppHeapExternal * Cast ( Data data)
inlinestatic

Definition at line 33 of file v8-cpp-heap-external.h.

◆ New()

template<typename T >
static Local< CppHeapExternal > New ( Isolate isolate,
T *  value,
CppHeapPointerTag  tag 
)
inlinestatic

Definition at line 26 of file v8-cpp-heap-external.h.

◆ Value()

template<typename T >
T * Value ( Isolate isolate,
CppHeapPointerTagRange  tag_range 
) const
inline

Definition at line 41 of file v8-cpp-heap-external.h.


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