![]() |
XII Release 0.1.0
|
Copyright (c) Theophilus Eriata. All Rights Reserved. More...
#include <PageAllocator.h>
Static Public Member Functions | |
| static void * | AllocatePage (size_t uiSize) |
| Allocates a page-aligned memory block of at least the specified size. | |
| static void | DeallocatePage (void *pPtr) |
| Deallocates a memory block previously allocated with AllocatePage. | |
| static xiiAllocatorId | GetId () |
| Returns the allocator identifier for tracking and debugging purposes. | |
Copyright (c) Theophilus Eriata. All Rights Reserved.
Low-level memory allocator that manages whole memory pages from the operating system.
This allocator requests memory directly from the OS in page-aligned chunks, typically 4KB or larger. It's designed for scenarios where you need large, aligned memory blocks with minimal overhead. Unlike general-purpose allocators, this operates at the virtual memory level and may reserve address space that isn't immediately committed to physical memory.
Use this allocator when:
|
static |
Allocates a page-aligned memory block of at least the specified size.
Copyright (c) Theophilus Eriata. All Rights Reserved.
|
static |
Returns the allocator identifier for tracking and debugging purposes.
Copyright (c) Theophilus Eriata. All Rights Reserved.