#include "base/DataAllocator.h"
#include "io/FileStreamBuffer.h"
#include "debug/macros.h"
#include "debug/new.h"
Namespaces | |
namespace | base |
Defines | |
#define | DEBUG_OFFSET 1 |
#define | CHECK_ALIGNED32(PTR) |
Functions | |
static void | DataAllocator_printMem (std::ostream &out, const char *caption, uint32_t mem) |
Utility function to print stats. | |
int32_t * | base_allocate (size_t size, void *allocator) |
C wrapper function for DataAllocator. | |
void | base_deallocate (void *mem, size_t intSize, void *allocator) |
C wrapper function for DataAllocator. | |
int32_t * | base_new (std::size_t size, void *) |
void | base_delete (void *mem, size_t unused1, void *unused2) |
C wrapper function for delete. | |
Variables | |
allocator_t | base_newallocator |
C wrapper allocator instance for new. |
|
Value: ASSERT((((uintptr_t)(PTR)) & 3) == 0,\ std::cerr << "Allocated memory is not 32 bits aligned.\n") |
|
|
|
C wrapper function for DataAllocator.
|
|
C wrapper function for DataAllocator.
|
|
C wrapper function for delete.
|
|
|
|
Utility function to print stats.
|
|
Initial value: { allocData:NULL, allocFunction:base_new, deallocFunction:base_delete }
|