Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
v8::SerializeInternalFieldsCallback Struct Reference

#include <v8-snapshot.h>

Collaboration diagram for v8::SerializeInternalFieldsCallback:
[legend]

Public Types

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

Public Member Functions

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

Public Attributes

CallbackFunction callback
 
void * data
 

Detailed Description

Callback and supporting data used in SnapshotCreator to implement embedder logic to serialize internal fields of v8::Objects. 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.

Member Typedef Documentation

◆ CallbackFunction

Constructor & Destructor Documentation

◆ SerializeInternalFieldsCallback()

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

Member Data Documentation

◆ callback

CallbackFunction v8::SerializeInternalFieldsCallback::callback

◆ data

void* v8::SerializeInternalFieldsCallback::data

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