Definition at line 6153 of file d8.cc.
◆ Serializer() [1/2]
v8::Serializer::Serializer |
( |
Isolate * | isolate | ) |
|
|
inlineexplicit |
◆ Serializer() [2/2]
◆ AdoptSharedValueConveyor()
|
inlineoverrideprotectedvirtual |
Called when the first shared value is serialized. All subsequent shared values will use the same conveyor.
The embedder must ensure the lifetime of the conveyor matches the lifetime of the serialized data.
If the embedder supports serializing shared values, this method should return true. Otherwise the embedder should throw an exception and return false.
This method is called at most once per serializer.
Reimplemented from v8::ValueSerializer::Delegate.
Definition at line 6249 of file d8.cc.
◆ AppendBackingStoresTo()
void v8::Serializer::AppendBackingStoresTo |
( |
std::vector< std::shared_ptr< BackingStore > > * | to | ) |
|
|
inline |
◆ FinalizeTransfer()
Maybe< bool > v8::Serializer::FinalizeTransfer |
( |
| ) |
|
|
inlineprivate |
◆ FreeBufferMemory()
void v8::Serializer::FreeBufferMemory |
( |
void * | buffer | ) |
|
|
inlineoverrideprotectedvirtual |
Frees a buffer allocated with |ReallocateBufferMemory|.
The default implementation uses the stdlib's free()
function.
Reimplemented from v8::ValueSerializer::Delegate.
Definition at line 6247 of file d8.cc.
◆ GetSharedArrayBufferId()
|
inlineoverrideprotectedvirtual |
◆ GetWasmModuleTransferId()
|
inlineoverrideprotectedvirtual |
◆ operator=()
◆ PrepareTransfer()
◆ ReallocateBufferMemory()
void * v8::Serializer::ReallocateBufferMemory |
( |
void * | old_buffer, |
|
|
size_t | size, |
|
|
size_t * | actual_size ) |
|
inlineoverrideprotectedvirtual |
Allocates memory for the buffer of at least the size provided. The actual size (which may be greater or equal) is written to |actual_size|. If no buffer has been allocated yet, nullptr will be provided.
If the memory cannot be allocated, nullptr should be returned. |actual_size| will be ignored. It is assumed that |old_buffer| is still valid in this case and has not been modified.
The default implementation uses the stdlib's realloc()
function.
Reimplemented from v8::ValueSerializer::Delegate.
Definition at line 6233 of file d8.cc.
◆ Release()
◆ ThrowDataCloneError()
void v8::Serializer::ThrowDataCloneError |
( |
Local< String > | message | ) |
|
|
inlineoverrideprotectedvirtual |
Handles the case where a DataCloneError would be thrown in the structured clone spec. Other V8 embedders may throw some other appropriate exception type.
Implements v8::ValueSerializer::Delegate.
Definition at line 6198 of file d8.cc.
◆ WriteValue()
◆ array_buffers_
◆ backing_stores_
◆ current_memory_usage_
size_t v8::Serializer::current_memory_usage_ |
|
private |
◆ data_
◆ isolate_
◆ serializer_
◆ shared_array_buffers_
◆ wasm_modules_
The documentation for this class was generated from the following file: