#include <v8.h>
◆ ~Delegate()
virtual v8::ValueSerializer::Delegate::~Delegate |
( |
| ) |
|
|
inlinevirtual |
◆ FreeBufferMemory()
virtual void v8::ValueSerializer::Delegate::FreeBufferMemory |
( |
void * |
buffer | ) |
|
|
virtual |
Frees a buffer allocated with |ReallocateBufferMemory|.
◆ GetSharedArrayBufferId()
◆ GetWasmModuleTransferId()
◆ ReallocateBufferMemory()
virtual void * v8::ValueSerializer::Delegate::ReallocateBufferMemory |
( |
void * |
old_buffer, |
|
|
size_t |
size, |
|
|
size_t * |
actual_size |
|
) |
| |
|
virtual |
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.
◆ ThrowDataCloneError()
virtual void v8::ValueSerializer::Delegate::ThrowDataCloneError |
( |
Local< String > |
message | ) |
|
|
pure virtual |
Handles the case where a DataCloneError would be thrown in the structured clone spec. Other V8 embedders may throw some other appropriate exception type.
◆ WriteHostObject()
The embedder overrides this method to write some kind of host object, if possible. If not, a suitable exception should be thrown and Nothing<bool>() returned.
The documentation for this class was generated from the following file: