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

#include <v8.h>

Data Structures

class  Delegate
 

Public Member Functions

 ValueDeserializer (Isolate *isolate, const uint8_t *data, size_t size)
 
 ValueDeserializer (Isolate *isolate, const uint8_t *data, size_t size, Delegate *delegate)
 
 ~ValueDeserializer ()
 
V8_WARN_UNUSED_RESULT Maybe< bool > ReadHeader (Local< Context > context)
 
 V8_DEPRECATE_SOON ("Use Local<Context> version", Maybe< bool > ReadHeader())
 
V8_WARN_UNUSED_RESULT MaybeLocal< ValueReadValue (Local< Context > context)
 
void TransferArrayBuffer (uint32_t transfer_id, Local< ArrayBuffer > array_buffer)
 
void TransferSharedArrayBuffer (uint32_t transfer_id, Local< SharedArrayBuffer > shared_array_buffer)
 
void SetSupportsLegacyWireFormat (bool supports_legacy_wire_format)
 
uint32_t GetWireFormatVersion () const
 
V8_WARN_UNUSED_RESULT bool ReadUint32 (uint32_t *value)
 
V8_WARN_UNUSED_RESULT bool ReadUint64 (uint64_t *value)
 
V8_WARN_UNUSED_RESULT bool ReadDouble (double *value)
 
V8_WARN_UNUSED_RESULT bool ReadRawBytes (size_t length, const void **data)
 

Detailed Description

Deserializes values from data written with ValueSerializer, or a compatible implementation.

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 1811 of file v8.h.

Constructor & Destructor Documentation

◆ ValueDeserializer() [1/2]

ValueDeserializer ( Isolate isolate,
const uint8_t *  data,
size_t  size 
)

◆ ValueDeserializer() [2/2]

ValueDeserializer ( Isolate isolate,
const uint8_t *  data,
size_t  size,
Delegate delegate 
)

◆ ~ValueDeserializer()

Member Function Documentation

◆ GetWireFormatVersion()

uint32_t GetWireFormatVersion ( ) const

◆ ReadDouble()

V8_WARN_UNUSED_RESULT bool ReadDouble ( double *  value)

◆ ReadHeader()

V8_WARN_UNUSED_RESULT Maybe<bool> ReadHeader ( Local< Context context)

◆ ReadRawBytes()

V8_WARN_UNUSED_RESULT bool ReadRawBytes ( size_t  length,
const void **  data 
)

◆ ReadUint32()

V8_WARN_UNUSED_RESULT bool ReadUint32 ( uint32_t *  value)

◆ ReadUint64()

V8_WARN_UNUSED_RESULT bool ReadUint64 ( uint64_t *  value)

◆ ReadValue()

V8_WARN_UNUSED_RESULT MaybeLocal<Value> ReadValue ( Local< Context context)

◆ SetSupportsLegacyWireFormat()

void SetSupportsLegacyWireFormat ( bool  supports_legacy_wire_format)

◆ TransferArrayBuffer()

void TransferArrayBuffer ( uint32_t  transfer_id,
Local< ArrayBuffer array_buffer 
)

◆ TransferSharedArrayBuffer()

void TransferSharedArrayBuffer ( uint32_t  transfer_id,
Local< SharedArrayBuffer shared_array_buffer 
)

◆ V8_DEPRECATE_SOON()

V8_DEPRECATE_SOON ( "Use Local<Context> version"  ,
Maybe< bool >   ReadHeader() 
)

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