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

#include <v8-snapshot.h>

Collaboration diagram for SerializeInternalFieldsCallback:

Public Types

using CallbackFunction = StartupData(*)(Local< Object > holder, int index, void *data)
 

Public Member Functions

 SerializeInternalFieldsCallback (CallbackFunction function=nullptr, void *data_arg=nullptr)
 

Data Fields

CallbackFunction callback
 
void * data
 

Detailed Description

Callback and supporting data used in SnapshotCreator to implement embedder logic to serialize internal fields. Internal fields that directly reference V8 objects are serialized without calling this callback. Internal fields that contain aligned pointers are serialized by this callback if it returns non-zero result. Otherwise it is serialized verbatim.

Definition at line 42 of file v8-snapshot.h.

Member Typedef Documentation

◆ CallbackFunction

using CallbackFunction = StartupData (*)(Local<Object> holder, int index, void* data)

Definition at line 43 of file v8-snapshot.h.

Constructor & Destructor Documentation

◆ SerializeInternalFieldsCallback()

SerializeInternalFieldsCallback ( CallbackFunction  function = nullptr,
void *  data_arg = nullptr 
)
inline

Field Documentation

◆ callback

◆ data

void* data

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