v8  5.5.372 (node 7.10.1)
V8 is Google's open source JavaScript engine
ValueSerializer Class Reference

#include <v8.h>

Data Structures

class  Delegate
 

Public Member Functions

 ValueSerializer (Isolate *isolate)
 
 ValueSerializer (Isolate *isolate, Delegate *delegate)
 
 ~ValueSerializer ()
 
void WriteHeader ()
 
V8_WARN_UNUSED_RESULT Maybe< bool > WriteValue (Local< Context > context, Local< Value > value)
 
std::vector< uint8_t > ReleaseBuffer ()
 
void TransferArrayBuffer (uint32_t transfer_id, Local< ArrayBuffer > array_buffer)
 
void TransferSharedArrayBuffer (uint32_t transfer_id, Local< SharedArrayBuffer > shared_array_buffer)
 
void WriteUint32 (uint32_t value)
 
void WriteUint64 (uint64_t value)
 
void WriteDouble (double value)
 
void WriteRawBytes (const void *source, size_t length)
 

Detailed Description

Value serialization compatible with the HTML structured clone algorithm. The format is backward-compatible (i.e. safe to store to disk).

WARNING: This API is under development, and changes (including incompatible changes to the API or wire format) may occur without notice until this warning is removed.

Definition at line 1729 of file v8.h.

Constructor & Destructor Documentation

◆ ValueSerializer() [1/2]

ValueSerializer ( Isolate isolate)
explicit

◆ ValueSerializer() [2/2]

ValueSerializer ( Isolate isolate,
Delegate delegate 
)

◆ ~ValueSerializer()

Member Function Documentation

◆ ReleaseBuffer()

std::vector<uint8_t> ReleaseBuffer ( )

◆ TransferArrayBuffer()

void TransferArrayBuffer ( uint32_t  transfer_id,
Local< ArrayBuffer array_buffer 
)

◆ TransferSharedArrayBuffer()

void TransferSharedArrayBuffer ( uint32_t  transfer_id,
Local< SharedArrayBuffer shared_array_buffer 
)

◆ WriteDouble()

void WriteDouble ( double  value)

◆ WriteHeader()

void WriteHeader ( )

◆ WriteRawBytes()

void WriteRawBytes ( const void *  source,
size_t  length 
)

◆ WriteUint32()

void WriteUint32 ( uint32_t  value)

◆ WriteUint64()

void WriteUint64 ( uint64_t  value)

◆ WriteValue()

V8_WARN_UNUSED_RESULT Maybe<bool> WriteValue ( Local< Context context,
Local< Value value 
)

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