v8
3.28.71 (node 0.12.18)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Public Member Functions | |
virtual | ~Allocator () |
virtual void * | Allocate (size_t length)=0 |
virtual void * | AllocateUninitialized (size_t length)=0 |
virtual void | Free (void *data, size_t length)=0 |
Allocator that V8 uses to allocate |ArrayBuffer|'s memory. The allocator is a global V8 setting. It should be set with V8::SetArrayBufferAllocator prior to creation of a first ArrayBuffer.
This API is experimental and may change significantly.
|
pure virtual |
Allocate |length| bytes. Return NULL if allocation is not successful. Memory should be initialized to zeroes.
|
pure virtual |
Allocate |length| bytes. Return NULL if allocation is not successful. Memory does not have to be initialized.
|
pure virtual |
Free the memory block of size |length|, pointed to by |data|. That memory is guaranteed to be previously allocated by |Allocate|.