#include <v8.h>
Allocator that V8 uses to allocate |ArrayBuffer|'s memory. The allocator is a global V8 setting. It has to be set via Isolate::CreateParams.
This API is experimental and may change significantly.
virtual v8::ArrayBuffer::Allocator::~Allocator |
( |
| ) |
|
|
inlinevirtual |
virtual void* v8::ArrayBuffer::Allocator::Allocate |
( |
size_t |
length | ) |
|
|
pure virtual |
Allocate |length| bytes. Return NULL if allocation is not successful. Memory should be initialized to zeroes.
virtual void* v8::ArrayBuffer::Allocator::AllocateUninitialized |
( |
size_t |
length | ) |
|
|
pure virtual |
Allocate |length| bytes. Return NULL if allocation is not successful. Memory does not have to be initialized.
virtual void v8::ArrayBuffer::Allocator::Free |
( |
void * |
data, |
|
|
size_t |
length |
|
) |
| |
|
pure virtual |
Free the memory block of size |length|, pointed to by |data|. That memory is guaranteed to be previously allocated by |Allocate|.
The documentation for this class was generated from the following file: