#include <Memory_Manager.h>
◆ TMemoryManager()
TMemoryManager::TMemoryManager |
( |
VOID * |
ParentBaseAddress, |
|
|
U32 |
MemorySize |
|
) |
| |
References AllocateClearedMemoryRequests, AllocatedMemorySize, AllocatedSegments, AllocateMemoryRequests, AllocationErrorCount, BaseAddress, BottomSegment, DeallocateMemoryRequests, DeallocationErrorCount, FailedSegment, FailedSegmentSatus, FirstFreeSegment, FreeMemorySize, FreeSegments, MaximalAllocatedSegmentSize, MaximalFreeSegmentSize, MaximalUsedMemory, MEMORY_MANAGER_FREE_SEGMENT, TAllocatedSegment::NextSegment, NULL, TAllocatedSegment::PreviousSegment, ReallocateMemoryRequests, ReallocationErrorCount, TAllocatedSegment::Size, TAllocatedSegment::Status, TopSegment, TotalMemorySize, TotalSegments, and WastedMemorySize.
◆ allocMemory()
VOID * TMemoryManager::allocMemory |
( |
U32 |
Size, |
|
|
BOOL |
Clear |
|
) |
| |
◆ CheckIntegrity()
BOOL TMemoryManager::CheckIntegrity |
( |
| ) |
|
◆ dllocMemory()
VOID TMemoryManager::dllocMemory |
( |
VOID * |
Pointer | ) |
|
◆ GetStatistics()
References TMemoryStatistics::AllocateClearedMemoryRequests, AllocateClearedMemoryRequests, TMemoryStatistics::AllocatedMemorySize, AllocatedMemorySize, TMemoryStatistics::AllocatedSegments, AllocatedSegments, TMemoryStatistics::AllocateMemoryRequests, AllocateMemoryRequests, TMemoryStatistics::AllocationErrorCount, AllocationErrorCount, TMemoryStatistics::BaseAddress, BaseAddress, TMemoryStatistics::BottomSegment, BottomSegment, TMemoryStatistics::DeallocateMemoryRequests, DeallocateMemoryRequests, TMemoryStatistics::DeallocationErrorCount, DeallocationErrorCount, TMemoryStatistics::FailedSegment, FailedSegment, TMemoryStatistics::FailedSegmentSatus, FailedSegmentSatus, TMemoryStatistics::FreeMemorySize, FreeMemorySize, TMemoryStatistics::FreeSegments, FreeSegments, TMemoryStatistics::MaximalAllocatedSegmentSize, MaximalAllocatedSegmentSize, TMemoryStatistics::MaximalFreeSegmentSize, MaximalFreeSegmentSize, TMemoryStatistics::MaximalUsedMemory, MaximalUsedMemory, NULL, TMemoryStatistics::ReallocateMemoryRequests, ReallocateMemoryRequests, TMemoryStatistics::ReallocationErrorCount, ReallocationErrorCount, TMemoryStatistics::TopSegment, TopSegment, TMemoryStatistics::TotalMemorySize, TotalMemorySize, TMemoryStatistics::TotalSegments, TotalSegments, TMemoryStatistics::WastedMemorySize, and WastedMemorySize.
◆ Is_Segment_Allocated()
◆ Is_Segment_Free()
◆ Is_Segment_Valid()
◆ MergeSegments()
◆ rllocMemory()
VOID * TMemoryManager::rllocMemory |
( |
VOID * |
Pointer, |
|
|
U32 |
Size |
|
) |
| |
◆ SetFirstFreeSegment()
◆ SplitSegment()
- Todo:
- ANVILEX KM: Verify segment, must be valid and free
References FreeMemorySize, FreeSegments, MEMORY_MANAGER_FREE_SEGMENT, TAllocatedSegment::NextSegment, NULL, TAllocatedSegment::PreviousSegment, TAllocatedSegment::Size, TAllocatedSegment::Status, TotalSegments, and WastedMemorySize.
◆ AllocateClearedMemoryRequests
U32 TMemoryManager::AllocateClearedMemoryRequests |
|
private |
◆ AllocatedMemorySize
U32 TMemoryManager::AllocatedMemorySize |
|
private |
◆ AllocatedSegments
U32 TMemoryManager::AllocatedSegments |
|
private |
◆ AllocateMemoryRequests
U32 TMemoryManager::AllocateMemoryRequests |
|
private |
◆ AllocationErrorCount
U32 TMemoryManager::AllocationErrorCount |
|
private |
◆ BaseAddress
VOID* TMemoryManager::BaseAddress |
|
private |
◆ BottomSegment
◆ DeallocateMemoryRequests
U32 TMemoryManager::DeallocateMemoryRequests |
|
private |
◆ DeallocationErrorCount
U32 TMemoryManager::DeallocationErrorCount |
|
private |
◆ FailedSegment
◆ FailedSegmentSatus
U32 TMemoryManager::FailedSegmentSatus |
|
private |
◆ FirstFreeSegment
◆ FreeMemorySize
U32 TMemoryManager::FreeMemorySize |
|
private |
◆ FreeSegments
U32 TMemoryManager::FreeSegments |
|
private |
◆ MaximalAllocatedSegmentSize
U32 TMemoryManager::MaximalAllocatedSegmentSize |
|
private |
◆ MaximalFreeSegmentSize
U32 TMemoryManager::MaximalFreeSegmentSize |
|
private |
◆ MaximalUsedMemory
U32 TMemoryManager::MaximalUsedMemory |
|
private |
◆ ReallocateMemoryRequests
U32 TMemoryManager::ReallocateMemoryRequests |
|
private |
◆ ReallocationErrorCount
U32 TMemoryManager::ReallocationErrorCount |
|
private |
◆ TopSegment
◆ TotalMemorySize
U32 TMemoryManager::TotalMemorySize |
|
private |
◆ TotalSegments
U32 TMemoryManager::TotalSegments |
|
private |
◆ WastedMemorySize
U32 TMemoryManager::WastedMemorySize |
|
private |
The documentation for this class was generated from the following files: