v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
SerializeContextDataCallback Struct Reference

#include <v8-snapshot.h>

Collaboration diagram for SerializeContextDataCallback:

Public Types

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

Public Member Functions

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

Data Fields

CallbackFunction callback
 
void * data
 

Detailed Description

Similar to SerializeInternalFieldsCallback, but works with the embedder data in a v8::Context.

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

Member Typedef Documentation

◆ CallbackFunction

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

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

Constructor & Destructor Documentation

◆ SerializeContextDataCallback()

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

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

Field Documentation

◆ callback

CallbackFunction callback

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

◆ data

void* data

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


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