Ark Server API (ASA) - Wiki
|
#include <GenericGrowableAllocator.h>
Classes | |
class | FFreeEntry |
Public Attributes | |
uint32 | MemoryType |
uint64 | HeapSize |
uint64 | UsedMemorySize |
uint32 | MaxFreeEntrySize |
FFreeEntry * | FreeList |
FCriticalSection * | CriticalSection |
Static Public Attributes | |
static const uint32 | MaxFreeEntrySizeDirty = 0xffffffff |
Additional Inherited Members | |
Protected Attributes inherited from FGrowableMallocBase | |
uint64 | TotalAllocated |
uint64 | TotalWaste |
uint64 | CurrentAllocs |
uint64 | TotalAllocs |
Definition at line 77 of file GenericGrowableAllocator.h.
|
inline |
Constructor
Definition at line 133 of file GenericGrowableAllocator.h.
|
inlinevirtual |
Destructor
Definition at line 154 of file GenericGrowableAllocator.h.
Check free list for an entry big enough to fit the requested Size with Alignment
Size | - allocation size |
Alignment | - allocation alignment |
Definition at line 170 of file GenericGrowableAllocator.h.
|
pure virtual |
Creates an implementation specific subclass of FGrowableAllocationBase. Does not need to be initialized (see InitializeAllocationStruct)
Lets the implementation allocate the backing memory for the chunk
Implementation needs to pause LLM tracking for ELLMTracker::Default if it's allocating from an allocator that tracks via ELLMTracker::Default
Size | Minimum size needed for this allocation. The implementation will likely allocate more, and return that amount |
|
inline |
Definition at line 158 of file GenericGrowableAllocator.h.
|
inlinevirtual |
Destroys the implemtnation object. By default, just deletes it
Definition at line 108 of file GenericGrowableAllocator.h.
Destroys the backing memory for the chunk
Implementation needs to pause LLM tracking for ELLMTracker::Default if it's allocating from an allocator that tracks via ELLMTracker::Default
Queries the implementation if the given address came from this chunk
|
pure virtual |
Queries the implementation if the given allocation came from this chunk
|
inline |
Definition at line 283 of file GenericGrowableAllocator.h.
Definition at line 358 of file GenericGrowableAllocator.h.
|
inline |
Definition at line 142 of file GenericGrowableAllocator.h.
|
pure virtual |
Lets the implementation fill in any specific fields of the allocation struct after the base fields are set up
|
inline |
Definition at line 209 of file GenericGrowableAllocator.h.
|
inline |
Definition at line 214 of file GenericGrowableAllocator.h.
|
inline |
Definition at line 365 of file GenericGrowableAllocator.h.
FCriticalSection* FGrowableMallocChunk::CriticalSection |
Shared critical section
Definition at line 502 of file GenericGrowableAllocator.h.
FFreeEntry* FGrowableMallocChunk::FreeList |
List of free blocks
Definition at line 499 of file GenericGrowableAllocator.h.
uint64 FGrowableMallocChunk::HeapSize |
Size of the heap
Definition at line 490 of file GenericGrowableAllocator.h.
uint32 FGrowableMallocChunk::MaxFreeEntrySize |
Size of the largest free entry (will be MaxFreeEntrySizeDirty if unknown)
Definition at line 496 of file GenericGrowableAllocator.h.
Definition at line 504 of file GenericGrowableAllocator.h.
uint32 FGrowableMallocChunk::MemoryType |
Definition at line 487 of file GenericGrowableAllocator.h.
uint64 FGrowableMallocChunk::UsedMemorySize |
Size of used memory
Definition at line 493 of file GenericGrowableAllocator.h.