Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
v8::CppHeapExternal Class Reference

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

Inheritance diagram for v8::CppHeapExternal:
[legend]
Collaboration diagram for v8::CppHeapExternal:
[legend]

Public Member Functions

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

Static Public Member Functions

template<typename T >
static Local< CppHeapExternalNew (Isolate *isolate, T *value, CppHeapPointerTag tag)
 
static 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.

Member Function Documentation

◆ Cast()

static CppHeapExternal * v8::CppHeapExternal::Cast ( Data data)
inlinestatic

◆ New()

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

◆ Value()

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

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