RetroArch
Classes | Typedefs | Enumerations | Functions
expandedheap.h File Reference
#include <wiiu/types.h>
#include "memheap.h"
Include dependency graph for expandedheap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MEMExpandedHeapBlock
 
struct  MEMExpandedHeapBlockList
 
struct  MEMExpandedHeap
 

Typedefs

typedef enum MEMExpandedHeapMode MEMExpandedHeapMode
 
typedef enum MEMExpandedHeapDirection MEMExpandedHeapDirection
 
typedef struct MEMExpandedHeapBlock MEMExpandedHeapBlock
 
typedef struct MEMExpandedHeapBlockList MEMExpandedHeapBlockList
 
typedef struct MEMExpandedHeap MEMExpandedHeap
 

Enumerations

enum  MEMExpandedHeapMode { MEM_EXP_HEAP_MODE_FIRST_FREE = 0, MEM_EXP_HEAP_MODE_NEAREST_SIZE = 1 }
 
enum  MEMExpandedHeapDirection { MEM_EXP_HEAP_DIR_FROM_TOP = 0, MEM_EXP_HEAP_DIR_FROM_BOTTOM = 1 }
 

Functions

MEMExpandedHeap * MEMCreateExpHeapEx (MEMExpandedHeap *heap, uint32_t size, uint16_t flags)
 
MEMExpandedHeap * MEMDestroyExpHeap (MEMExpandedHeap *heap)
 
void * MEMAllocFromExpHeapEx (MEMExpandedHeap *heap, uint32_t size, int alignment)
 
void MEMFreeToExpHeap (MEMExpandedHeap *heap, uint8_t *block)
 
MEMExpandedHeapMode MEMSetAllocModeForExpHeap (MEMExpandedHeap *heap, MEMExpandedHeapMode mode)
 
MEMExpandedHeapMode MEMGetAllocModeForExpHeap (MEMExpandedHeap *heap)
 
uint32_t MEMAdjustExpHeap (MEMExpandedHeap *heap)
 
uint32_t MEMResizeForMBlockExpHeap (MEMExpandedHeap *heap, uint8_t *address, uint32_t size)
 
uint32_t MEMGetTotalFreeSizeForExpHeap (MEMExpandedHeap *heap)
 
uint32_t MEMGetAllocatableSizeForExpHeapEx (MEMExpandedHeap *heap, int alignment)
 
uint16_t MEMSetGroupIDForExpHeap (MEMExpandedHeap *heap, uint16_t id)
 
uint16_t MEMGetGroupIDForExpHeap (MEMExpandedHeap *heap)
 
uint32_t MEMGetSizeForMBlockExpHeap (uint8_t *addr)
 
uint16_t MEMGetGroupIDForMBlockExpHeap (uint8_t *addr)
 
MEMExpandedHeapDirection MEMGetAllocDirForMBlockExpHeap (uint8_t *addr)
 

Typedef Documentation

◆ MEMExpandedHeap

◆ MEMExpandedHeapBlock

◆ MEMExpandedHeapBlockList

◆ MEMExpandedHeapDirection

◆ MEMExpandedHeapMode

Enumeration Type Documentation

◆ MEMExpandedHeapDirection

Enumerator
MEM_EXP_HEAP_DIR_FROM_TOP 
MEM_EXP_HEAP_DIR_FROM_BOTTOM 

◆ MEMExpandedHeapMode

Enumerator
MEM_EXP_HEAP_MODE_FIRST_FREE 
MEM_EXP_HEAP_MODE_NEAREST_SIZE 

Function Documentation

◆ MEMAdjustExpHeap()

uint32_t MEMAdjustExpHeap ( MEMExpandedHeap *  heap)

◆ MEMAllocFromExpHeapEx()

void* MEMAllocFromExpHeapEx ( MEMExpandedHeap *  heap,
uint32_t  size,
int  alignment 
)
Here is the caller graph for this function:

◆ MEMCreateExpHeapEx()

MEMExpandedHeap* MEMCreateExpHeapEx ( MEMExpandedHeap *  heap,
uint32_t  size,
uint16_t  flags 
)
Here is the caller graph for this function:

◆ MEMDestroyExpHeap()

MEMExpandedHeap* MEMDestroyExpHeap ( MEMExpandedHeap *  heap)
Here is the caller graph for this function:

◆ MEMFreeToExpHeap()

void MEMFreeToExpHeap ( MEMExpandedHeap *  heap,
uint8_t *  block 
)
Here is the caller graph for this function:

◆ MEMGetAllocatableSizeForExpHeapEx()

uint32_t MEMGetAllocatableSizeForExpHeapEx ( MEMExpandedHeap *  heap,
int  alignment 
)

◆ MEMGetAllocDirForMBlockExpHeap()

MEMExpandedHeapDirection MEMGetAllocDirForMBlockExpHeap ( uint8_t *  addr)

◆ MEMGetAllocModeForExpHeap()

MEMExpandedHeapMode MEMGetAllocModeForExpHeap ( MEMExpandedHeap *  heap)

◆ MEMGetGroupIDForExpHeap()

uint16_t MEMGetGroupIDForExpHeap ( MEMExpandedHeap *  heap)

◆ MEMGetGroupIDForMBlockExpHeap()

uint16_t MEMGetGroupIDForMBlockExpHeap ( uint8_t *  addr)

◆ MEMGetSizeForMBlockExpHeap()

uint32_t MEMGetSizeForMBlockExpHeap ( uint8_t *  addr)
Here is the caller graph for this function:

◆ MEMGetTotalFreeSizeForExpHeap()

uint32_t MEMGetTotalFreeSizeForExpHeap ( MEMExpandedHeap *  heap)

◆ MEMResizeForMBlockExpHeap()

uint32_t MEMResizeForMBlockExpHeap ( MEMExpandedHeap *  heap,
uint8_t *  address,
uint32_t  size 
)

◆ MEMSetAllocModeForExpHeap()

MEMExpandedHeapMode MEMSetAllocModeForExpHeap ( MEMExpandedHeap *  heap,
MEMExpandedHeapMode  mode 
)

◆ MEMSetGroupIDForExpHeap()

uint16_t MEMSetGroupIDForExpHeap ( MEMExpandedHeap *  heap,
uint16_t  id 
)