Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Private Member Functions | List of all members
ScriptInterface::StructuredClone Class Reference

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

ScriptInterface::StructuredClone::StructuredClone ( )

Definition at line 1306 of file ScriptInterface.cpp.

ScriptInterface::StructuredClone::~StructuredClone ( )

Definition at line 1311 of file ScriptInterface.cpp.

Member Function Documentation

ScriptInterface::StructuredClone::NONCOPYABLE ( StructuredClone  )
private

Member Data Documentation

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.


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