v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MockArrayBufferAllocator Class Reference
Inheritance diagram for MockArrayBufferAllocator:
Collaboration diagram for MockArrayBufferAllocator:

Public Member Functions

virtual void * Allocate (size_t) V8_OVERRIDE
 
virtual void * AllocateUninitialized (size_t length) V8_OVERRIDE
 
virtual void Free (void *, size_t) V8_OVERRIDE
 
- Public Member Functions inherited from ArrayBuffer::Allocator
virtual ~Allocator ()
 

Detailed Description

Definition at line 1665 of file d8.cc.

Member Function Documentation

virtual void* Allocate ( size_t  length)
inlinevirtual

Allocate |length| bytes. Return NULL if allocation is not successful. Memory should be initialized to zeroes.

Implements ArrayBuffer::Allocator.

Definition at line 1667 of file d8.cc.

virtual void* AllocateUninitialized ( size_t  length)
inlinevirtual

Allocate |length| bytes. Return NULL if allocation is not successful. Memory does not have to be initialized.

Implements ArrayBuffer::Allocator.

Definition at line 1670 of file d8.cc.

virtual void Free ( void *  data,
size_t  length 
)
inlinevirtual

Free the memory block of size |length|, pointed to by |data|. That memory is guaranteed to be previously allocated by |Allocate|.

Implements ArrayBuffer::Allocator.

Definition at line 1673 of file d8.cc.


The documentation for this class was generated from the following file: