V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::ValueSerializer Class Reference

#include <value-serializer.h>

Public Member Functions

 ValueSerializer (Isolate *isolate, v8::ValueSerializer::Delegate *delegate)
 
void WriteHeader ()
 
Maybe< boolWriteObject (Handle< Object > object) V8_WARN_UNUSED_RESULT
 
std::vector< uint8_t > ReleaseBuffer ()
 
std::pair< uint8_t *, size_tRelease ()
 
void TransferArrayBuffer (uint32_t transfer_id, Handle< JSArrayBuffer > array_buffer)
 
void WriteUint32 (uint32_t value)
 
void WriteUint64 (uint64_t value)
 
void WriteRawBytes (const void *source, size_t length)
 
void WriteDouble (double value)
 
void SetTreatArrayBufferViewsAsHostObjects (bool mode)
 

Detailed Description

Writes V8 objects in a binary format that allows the objects to be cloned according to the HTML structured clone algorithm.

Format is based on Blink's previous serialization logic.

Definition at line 48 of file value-serializer.h.


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