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

Go to the source code of this file.

Classes

struct  MEMHeapHeader
 

Typedefs

typedef enum MEMHeapFillType MEMHeapFillType
 
typedef enum MEMHeapTag MEMHeapTag
 
typedef enum MEMHeapFlags MEMHeapFlags
 
typedef struct MEMHeapHeader MEMHeapHeader
 

Enumerations

enum  MEMHeapFillType { MEM_HEAP_FILL_TYPE_UNUSED = 0, MEM_HEAP_FILL_TYPE_ALLOCATED = 1, MEM_HEAP_FILL_TYPE_FREED = 2 }
 
enum  MEMHeapTag {
  MEM_BLOCK_HEAP_TAG = 0x424C4B48u, MEM_EXPANDED_HEAP_TAG = 0x45585048u, MEM_FRAME_HEAP_TAG = 0x46524D48u, MEM_UNIT_HEAP_TAG = 0x554E5448u,
  MEM_USER_HEAP_TAG = 0x55535248u
}
 
enum  MEMHeapFlags { MEM_HEAP_FLAG_ZERO_ALLOCATED = 1 << 0, MEM_HEAP_FLAG_DEBUG_MODE = 1 << 1, MEM_HEAP_FLAG_USE_LOCK = 1 << 2 }
 

Functions

void MEMDumpHeap (MEMHeapHeader *heap)
 
MEMHeapHeaderMEMFindContainHeap (void *block)
 
uint32_t MEMGetFillValForHeap (MEMHeapFillType type)
 
void MEMSetFillValForHeap (MEMHeapFillType type, uint32_t value)
 

Typedef Documentation

◆ MEMHeapFillType

◆ MEMHeapFlags

typedef enum MEMHeapFlags MEMHeapFlags

◆ MEMHeapHeader

typedef struct MEMHeapHeader MEMHeapHeader

◆ MEMHeapTag

typedef enum MEMHeapTag MEMHeapTag

Enumeration Type Documentation

◆ MEMHeapFillType

Enumerator
MEM_HEAP_FILL_TYPE_UNUSED 
MEM_HEAP_FILL_TYPE_ALLOCATED 
MEM_HEAP_FILL_TYPE_FREED 

◆ MEMHeapFlags

Enumerator
MEM_HEAP_FLAG_ZERO_ALLOCATED 
MEM_HEAP_FLAG_DEBUG_MODE 
MEM_HEAP_FLAG_USE_LOCK 

◆ MEMHeapTag

enum MEMHeapTag
Enumerator
MEM_BLOCK_HEAP_TAG 
MEM_EXPANDED_HEAP_TAG 
MEM_FRAME_HEAP_TAG 
MEM_UNIT_HEAP_TAG 
MEM_USER_HEAP_TAG 

Function Documentation

◆ MEMDumpHeap()

void MEMDumpHeap ( MEMHeapHeader heap)

Print details about heap to COSWarn

◆ MEMFindContainHeap()

MEMHeapHeader* MEMFindContainHeap ( void block)

Find heap which contains a memory block.

◆ MEMGetFillValForHeap()

uint32_t MEMGetFillValForHeap ( MEMHeapFillType  type)

Get the data fill value used when MEM_HEAP_FLAG_DEBUG_MODE is set.

◆ MEMSetFillValForHeap()

void MEMSetFillValForHeap ( MEMHeapFillType  type,
uint32_t  value 
)

Set the data fill value used when MEM_HEAP_FLAG_DEBUG_MODE is set.