V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
|
#include <v8.h>
Classes | |
class | Delegate |
struct | PrivateData |
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) | |
V8_WARN_UNUSED_RESULT Maybe< bool > | ReadHeader (Local< Context > context) |
V8_WARN_UNUSED_RESULT MaybeLocal< Value > | ReadValue (Local< Context > context) |
void | TransferArrayBuffer (uint32_t transfer_id, Local< ArrayBuffer > array_buffer) |
void | TransferSharedArrayBuffer (uint32_t id, Local< SharedArrayBuffer > shared_array_buffer) |
void | SetSupportsLegacyWireFormat (bool supports_legacy_wire_format) |
void | SetExpectInlineWasm (bool allow_inline_wasm) |
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) |
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.
uint32_t v8::ValueDeserializer::GetWireFormatVersion | ( | ) | const |
Reads raw data in various common formats to the buffer. Note that integer types are read in base-128 varint format, not with a binary copy. For use during an override of Delegate::ReadHostObject.
MaybeLocal< Value > v8::ValueDeserializer::ReadValue | ( | Local< Context > | context | ) |
void v8::ValueDeserializer::SetExpectInlineWasm | ( | bool | allow_inline_wasm | ) |
void v8::ValueDeserializer::SetSupportsLegacyWireFormat | ( | bool | supports_legacy_wire_format | ) |
void v8::ValueDeserializer::TransferArrayBuffer | ( | uint32_t | transfer_id, |
Local< ArrayBuffer > | array_buffer | ||
) |
Accepts the array buffer corresponding to the one passed previously to ValueSerializer::TransferArrayBuffer.
void v8::ValueDeserializer::TransferSharedArrayBuffer | ( | uint32_t | id, |
Local< SharedArrayBuffer > | shared_array_buffer | ||
) |
Similar to TransferArrayBuffer, but for SharedArrayBuffer. The id is not necessarily in the same namespace as unshared ArrayBuffer objects.