V8 Project
|
Public Member Functions | |
virtual void * | Allocate (size_t) OVERRIDE |
Allocate |length| bytes. More... | |
virtual void * | AllocateUninitialized (size_t length) OVERRIDE |
Allocate |length| bytes. More... | |
virtual void | Free (void *p, size_t) OVERRIDE |
Free the memory block of size |length|, pointed to by |data|. More... | |
![]() | |
virtual | ~Allocator () |
|
inlinevirtual |
Allocate |length| bytes.
Return NULL if allocation is not successful. Memory should be initialized to zeroes.
Implements v8::ArrayBuffer::Allocator.
|
inlinevirtual |
Allocate |length| bytes.
Return NULL if allocation is not successful. Memory does not have to be initialized.
Implements v8::ArrayBuffer::Allocator.
|
inlinevirtual |
Free the memory block of size |length|, pointed to by |data|.
That memory is guaranteed to be previously allocated by |Allocate|.
Implements v8::ArrayBuffer::Allocator.