This is the documentation for Enlighten.
class Geo GeoVirtualPageAllocator
class Geo::GeoVirtualPageAllocator
Implementation of the MemoryAllocator class (on Windows) that uses VirtualAlloc and VirtualProtect to provide similar memory overwrite detection as the Application Verifier.
Functions
Name | Description |
|---|---|
Force a virtual destructor. This is not called by GeoMemory. | |
Allocate(size_t, size_t, const char *, Geo::s32, const char *) | Allocate a block of memory with the given size. |
Allocate(size_t, size_t, const char *, Geo::s32, const char *) | Allocate a block of memory with the given size. |
Free a block of memory, possibly aligned. | |
Free a block of memory, possibly aligned. | |
The total amount of memory we've allocated to date (not subtracting deallocations). | |
The number of times we've allocated memory through GeoMemory. | |
The total amount of memory we've deallocated so far. | |
The total amount of memory currently allocated (allocations minus deallocations) | |
Returns true if the memory summary functionality is supported with this allocator. | |
Realloc(void *, size_t, size_t, const char *, Geo::s32, const char *) | Reallocate a block of memory, preserving as much data as will fit in the new block size. |
Realloc(void *, size_t, size_t, const char *, s32, const char *) | Reallocate a block of memory, preserving as much data as will fit in the new block size. |
virtual Geo::MemoryAllocator::~MemoryAllocator
public: virtual ~MemoryAllocator()
Force a virtual destructor. This is not called by GeoMemory.
virtual void* Geo::GeoVirtualPageAllocator::Allocate
public: virtual void * Allocate
(
size_t size,
size_t align,
const char * filename,
Geo::s32 lineNumber,
const char * message
)
Allocate a block of memory with the given size.
If alignment is 0, use unaligned allocation. Otherwise, alignment must be a power of two.
virtual void* Geo::MemoryAllocator::Allocate
public: void * Allocate
(
size_t size,
size_t align,
const char * filename,
Geo::s32 lineNumber,
const char * message
)