#include <JKRHeap.h>
|
| JKRHeap (void *data, u32 size, JKRHeap *parent, bool errorFlag) |
|
virtual | ~JKRHeap () |
|
JKRHeap * | becomeSystemHeap () |
|
JKRHeap * | becomeCurrentHeap () |
|
void | destroy () |
|
void * | alloc (u32 size, int alignment) |
|
void | free (void *ptr) |
|
void | freeAll () |
|
void | freeTail () |
|
s32 | resize (void *ptr, u32 size) |
|
s32 | getSize (void *ptr) |
|
s32 | getFreeSize () |
|
void * | getMaxFreeBlock () |
|
s32 | getTotalFreeSize () |
|
s32 | changeGroupID (u8 newGroupId) |
|
u32 | getMaxAllocatableSize (int alignment) |
|
JKRHeap * | find (void *ptr) const |
|
JKRHeap * | findAllHeap (void *ptr) const |
|
void | dispose_subroutine (u32 start, u32 end) |
|
bool | dispose (void *ptr, u32 size) |
|
void | dispose (void *begin, void *end) |
|
void | dispose () |
|
bool | setErrorFlag (bool errorFlag) |
|
bool | isSubHeap (JKRHeap *heap) const |
|
virtual void | callAllDisposer () |
|
virtual u32 | getHeapType ()=0 |
|
virtual bool | check ()=0 |
|
virtual bool | dump_sort () |
|
virtual bool | dump ()=0 |
|
virtual void | do_destroy ()=0 |
|
virtual void * | do_alloc (u32 size, int alignment)=0 |
|
virtual void | do_free (void *ptr)=0 |
|
virtual void | do_freeAll ()=0 |
|
virtual void | do_freeTail ()=0 |
|
virtual void | do_fillFreeArea ()=0 |
|
virtual s32 | do_resize (void *ptr, u32 size)=0 |
|
virtual s32 | do_getSize (void *ptr)=0 |
|
virtual s32 | do_getFreeSize ()=0 |
|
virtual void * | do_getMaxFreeBlock ()=0 |
|
virtual s32 | do_getTotalFreeSize ()=0 |
|
virtual s32 | do_changeGroupID (u8 newGroupID) |
|
virtual u8 | do_getCurrentGroupId () |
|
virtual void | state_register (JKRHeap::TState *p, u32 id) const |
|
virtual bool | state_compare (JKRHeap::TState const &r1, JKRHeap::TState const &r2) const |
|
virtual void | state_dump (JKRHeap::TState const &p) const |
|
void | setDebugFill (bool debugFill) |
|
bool | getDebugFill () const |
|
void * | getStartAddr () const |
|
void * | getEndAddr () const |
|
u32 | getSize () const |
|
bool | getErrorFlag () const |
|
void | callErrorHandler (JKRHeap *heap, u32 size, int alignment) |
|
JKRHeap * | getParent () const |
|
JSUTree< JKRHeap > & | getHeapTree () |
|
void | appendDisposer (JKRDisposer *disposer) |
|
void | removeDisposer (JKRDisposer *disposer) |
|
void | lock () |
|
void | unlock () |
|
u32 | getHeapSize () |
|
| JKRDisposer () |
|
virtual | ~JKRDisposer () |
|
|
static bool | initArena (char **memory, u32 *size, int maxHeaps) |
|
static void * | alloc (u32 size, int alignment, JKRHeap *heap) |
|
static void | free (void *ptr, JKRHeap *heap) |
|
static s32 | resize (void *ptr, u32 size, JKRHeap *heap) |
|
static s32 | getSize (void *ptr, JKRHeap *heap) |
|
static JKRHeap * | findFromRoot (void *ptr) |
|
static void | copyMemory (void *dst, void *src, u32 size) |
|
static void | fillMemory (void *dst, u32 size, u8 value) |
|
static bool | checkMemoryFilled (void *src, u32 size, u8 value) |
|
static JKRErrorHandler | setErrorHandler (JKRErrorHandler errorHandler) |
|
static void | setDefaultDebugFill (bool status) |
|
static void * | getCodeStart (void) |
|
static void * | getCodeEnd (void) |
|
static void * | getUserRamStart (void) |
|
static void * | getUserRamEnd (void) |
|
static u32 | getMemorySize (void) |
|
static JKRHeap * | getRootHeap () |
|
static JKRHeap * | getRootHeap2 () |
|
static JKRHeap * | getSystemHeap () |
|
static JKRHeap * | getCurrentHeap () |
|
static void | setSystemHeap (JKRHeap *heap) |
|
static void | setCurrentHeap (JKRHeap *heap) |
|
static void | setState_u32ID_ (TState *state, u32 id) |
|
static void | setState_uUsedSize_ (TState *state, u32 usedSize) |
|
static void | setState_u32CheckCode_ (TState *state, u32 checkCode) |
|
static void * | getState_buf_ (TState *state) |
|
static void * | getState_ (TState *state) |
|
◆ JKRHeap()
◆ ~JKRHeap()
◆ alloc() [1/2]
◆ alloc() [2/2]
◆ appendDisposer()
◆ becomeCurrentHeap()
JKRHeap * JKRHeap::becomeCurrentHeap |
( |
| ) |
|
◆ becomeSystemHeap()
JKRHeap * JKRHeap::becomeSystemHeap |
( |
| ) |
|
◆ callAllDisposer()
void JKRHeap::callAllDisposer |
( |
| ) |
|
|
virtual |
◆ callErrorHandler()
◆ changeGroupID()
s32 JKRHeap::changeGroupID |
( |
u8 |
newGroupId | ) |
|
◆ check()
◆ checkMemoryFilled()
◆ copyMemory()
◆ destroy()
void JKRHeap::destroy |
( |
| ) |
|
◆ dispose() [1/3]
void JKRHeap::dispose |
( |
| ) |
|
◆ dispose() [2/3]
◆ dispose() [3/3]
◆ dispose_subroutine()
void JKRHeap::dispose_subroutine |
( |
u32 |
start, |
|
|
u32 |
end |
|
) |
| |
◆ do_alloc()
◆ do_changeGroupID()
s32 JKRHeap::do_changeGroupID |
( |
u8 |
newGroupID | ) |
|
|
virtual |
◆ do_destroy()
◆ do_fillFreeArea()
◆ do_free()
◆ do_freeAll()
◆ do_freeTail()
◆ do_getCurrentGroupId()
u8 JKRHeap::do_getCurrentGroupId |
( |
void |
| ) |
|
|
virtual |
◆ do_getFreeSize()
◆ do_getMaxFreeBlock()
◆ do_getSize()
◆ do_getTotalFreeSize()
◆ do_resize()
◆ dump()
◆ dump_sort()
◆ fillMemory()
◆ find()
◆ findAllHeap()
◆ findFromRoot()
◆ free() [1/2]
◆ free() [2/2]
◆ freeAll()
void JKRHeap::freeAll |
( |
| ) |
|
◆ freeTail()
void JKRHeap::freeTail |
( |
| ) |
|
◆ getCodeEnd()
◆ getCodeStart()
◆ getCurrentHeap()
◆ getDebugFill()
bool JKRHeap::getDebugFill |
( |
| ) |
const |
|
inline |
◆ getEndAddr()
void * JKRHeap::getEndAddr |
( |
| ) |
const |
|
inline |
◆ getErrorFlag()
bool JKRHeap::getErrorFlag |
( |
| ) |
const |
|
inline |
◆ getFreeSize()
s32 JKRHeap::getFreeSize |
( |
| ) |
|
◆ getHeapSize()
u32 JKRHeap::getHeapSize |
( |
| ) |
|
|
inline |
◆ getHeapTree()
◆ getHeapType()
◆ getMaxAllocatableSize()
u32 JKRHeap::getMaxAllocatableSize |
( |
int |
alignment | ) |
|
◆ getMaxFreeBlock()
void * JKRHeap::getMaxFreeBlock |
( |
| ) |
|
◆ getMemorySize()
◆ getParent()
JKRHeap * JKRHeap::getParent |
( |
| ) |
const |
|
inline |
◆ getRootHeap()
◆ getRootHeap2()
◆ getSize() [1/3]
u32 JKRHeap::getSize |
( |
| ) |
const |
|
inline |
◆ getSize() [2/3]
◆ getSize() [3/3]
◆ getStartAddr()
void * JKRHeap::getStartAddr |
( |
| ) |
const |
|
inline |
◆ getState_()
◆ getState_buf_()
◆ getSystemHeap()
◆ getTotalFreeSize()
s32 JKRHeap::getTotalFreeSize |
( |
| ) |
|
◆ getUserRamEnd()
◆ getUserRamStart()
◆ initArena()
◆ isSubHeap()
◆ lock()
◆ removeDisposer()
◆ resize() [1/2]
◆ resize() [2/2]
◆ setCurrentHeap()
◆ setDebugFill()
void JKRHeap::setDebugFill |
( |
bool |
debugFill | ) |
|
|
inline |
◆ setDefaultDebugFill()
◆ setErrorFlag()
bool JKRHeap::setErrorFlag |
( |
bool |
errorFlag | ) |
|
◆ setErrorHandler()
◆ setState_u32CheckCode_()
◆ setState_u32ID_()
◆ setState_uUsedSize_()
◆ setSystemHeap()
◆ state_compare()
◆ state_dump()
◆ state_register()
◆ unlock()
◆ mAllocationMode
u8 JKRHeap::mAllocationMode |
|
protected |
◆ mCheckMemoryFilled
bool JKRHeap::mCheckMemoryFilled |
|
protected |
◆ mChildTree
◆ mCodeEnd
◆ mCodeStart
void * JKRHeap::mCodeStart |
|
static |
◆ mDebugFill
◆ mDisposerList
◆ mEnd
◆ mErrorFlag
◆ mErrorHandler
◆ mGroupId
◆ mInitFlag
◆ mMemorySize
◆ mMutex
◆ mSize
◆ mStart
◆ mUserRamEnd
void * JKRHeap::mUserRamEnd |
|
static |
◆ mUserRamStart
void * JKRHeap::mUserRamStart |
|
static |
◆ padding_0x6a
u8 JKRHeap::padding_0x6a[2] |
|
protected |
◆ sCurrentHeap
◆ sRootHeap
◆ sRootHeap2
◆ sSystemHeap
The documentation for this class was generated from the following files: