WUT  0.1
Wii U Toolchain
unitheap.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 typedef struct MEMUnitHeap MEMUnitHeap;
15 
17 {
18 };
19 UNKNOWN_SIZE(MEMUnitHeap);
20 
23  uint32_t size,
24  uint32_t blockSize,
25  int32_t alignment,
26  uint16_t flags);
27 
28 void *
30 
31 void *
33 
34 void
36  void *block);
37 
38 void
40 
41 uint32_t
43 
44 uint32_t
45 MEMCalcHeapSizeForUnitHeap(uint32_t blockSize,
46  uint32_t count,
47  int32_t alignment);
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
void * MEMAllocFromUnitHeap(MEMUnitHeap *heap)
void * MEMDestroyUnitHeap(MEMUnitHeap *heap)
MEMUnitHeap * MEMCreateUnitHeapEx(MEMUnitHeap *heap, uint32_t size, uint32_t blockSize, int32_t alignment, uint16_t flags)
void MEMFreeToUnitHeap(MEMUnitHeap *heap, void *block)
uint32_t MEMCalcHeapSizeForUnitHeap(uint32_t blockSize, uint32_t count, int32_t alignment)
uint32_t MEMCountFreeBlockForUnitHeap(MEMUnitHeap *heap)
void MEMiDumpUnitHeap(MEMUnitHeap *heap)