Pyrogenesis
13997
|
Structured clones are a way to serialize 'simple' JS values into a buffer that can safely be passed between contexts and runtimes and threads. More...
#include <ScriptInterface.h>
Public Member Functions | |
StructuredClone () | |
~StructuredClone () | |
Public Attributes | |
JSContext * | m_Context |
uint64 * | m_Data |
size_t | m_Size |
Private Member Functions | |
NONCOPYABLE (StructuredClone) | |
Structured clones are a way to serialize 'simple' JS values into a buffer that can safely be passed between contexts and runtimes and threads.
A StructuredClone can be stored and read multiple times if desired. We wrap them in shared_ptr so memory management is automatic and thread-safe.
Definition at line 310 of file ScriptInterface.h.
ScriptInterface::StructuredClone::StructuredClone | ( | ) |
Definition at line 1306 of file ScriptInterface.cpp.
ScriptInterface::StructuredClone::~StructuredClone | ( | ) |
Definition at line 1311 of file ScriptInterface.cpp.
|
private |
JSContext* ScriptInterface::StructuredClone::m_Context |
Definition at line 316 of file ScriptInterface.h.
uint64* ScriptInterface::StructuredClone::m_Data |
Definition at line 317 of file ScriptInterface.h.
size_t ScriptInterface::StructuredClone::m_Size |
Definition at line 318 of file ScriptInterface.h.