RetroArch
unitheap.h
Go to the documentation of this file.
1 #pragma once
2 #include <wiiu/types.h>
3 #include "memheap.h"
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 
9 typedef struct MEMUnitHeapFreeBlock
10 {
13 
14 typedef struct
15 {
19 } MEMUnitHeap;
20 
22  int32_t alignment, uint16_t flags);
23 void *MEMDestroyUnitHeap(MEMUnitHeap *heap);
25 void MEMFreeToUnitHeap(MEMUnitHeap *heap, void *block);
26 void MEMiDumpUnitHeap(MEMUnitHeap *heap);
29 
30 #ifdef __cplusplus
31 }
32 #endif
void * MEMDestroyUnitHeap(MEMUnitHeap *heap)
uint32_t MEMCountFreeBlockForUnitHeap(MEMUnitHeap *heap)
MEMUnitHeap * MEMCreateUnitHeapEx(MEMUnitHeap *heap, uint32_t size, uint32_t blockSize, int32_t alignment, uint16_t flags)
MEMHeapHeader header
Definition: unitheap.h:16
void MEMiDumpUnitHeap(MEMUnitHeap *heap)
GLsizeiptr size
Definition: glext.h:6559
Definition: unitheap.h:14
struct MEMUnitHeapFreeBlock * next
Definition: unitheap.h:11
GLuint GLuint GLsizei count
Definition: glext.h:6292
Definition: unitheap.h:9
MEMUnitHeapFreeBlock * freeBlocks
Definition: unitheap.h:17
Definition: memheap.h:33
uint32_t MEMCalcHeapSizeForUnitHeap(uint32_t blockSize, uint32_t count, int32_t alignment)
struct MEMUnitHeapFreeBlock MEMUnitHeapFreeBlock
signed int int32_t
Definition: stdint.h:123
static int block
Definition: psp2.c:31
void MEMFreeToUnitHeap(MEMUnitHeap *heap, void *block)
uint32_t blockSize
Definition: unitheap.h:18
GLbitfield flags
Definition: glext.h:7828
unsigned short uint16_t
Definition: stdint.h:125
void * MEMAllocFromUnitHeap(MEMUnitHeap *heap)
unsigned int uint32_t
Definition: stdint.h:126