WUT  0.1
Wii U Toolchain
expandedheap.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 
15 
16 typedef uint32_t MEMExpHeapMode;
17 typedef uint32_t MEMExpHeapDirection;
18 
20 {
21 };
22 UNKNOWN_SIZE(MEMExpandedHeap);
23 
24 enum MEMExpHeapMode
25 {
28 };
29 
30 enum MEMExpHeapDirection
31 {
34 };
35 
37 MEMCreateExpHeap(MEMExpandedHeap *heap, uint32_t size);
38 
40 MEMCreateExpHeapEx(MEMExpandedHeap *heap, uint32_t size, uint16_t flags);
41 
44 
45 void
47 
48 void *
49 MEMAllocFromExpHeap(MEMExpandedHeap *heap, uint32_t size);
50 
51 void *
52 MEMAllocFromExpHeapEx(MEMExpandedHeap *heap, uint32_t size, int alignment);
53 
54 void
55 MEMFreeToExpHeap(MEMExpandedHeap *heap, uint8_t *block);
56 
57 MEMExpHeapMode
58 MEMSetAllocModeForExpHeap(MEMExpandedHeap *heap, MEMExpHeapMode mode);
59 
60 MEMExpHeapMode
62 
63 uint32_t
65 
66 uint32_t
67 MEMResizeForMBlockExpHeap(MEMExpandedHeap *heap, uint8_t *address, uint32_t size);
68 
69 uint32_t
71 
72 uint32_t
74 
75 uint32_t
77 
78 uint16_t
79 MEMSetGroupIDForExpHeap(MEMExpandedHeap *heap, uint16_t id);
80 
81 uint16_t
83 
84 uint32_t
85 MEMGetSizeForMBlockExpHeap(uint8_t *addr);
86 
87 uint16_t
88 MEMGetGroupIDForMBlockExpHeap(uint8_t *addr);
89 
90 MEMExpHeapDirection
91 MEMGetAllocDirForMBlockExpHeap(uint8_t *addr);
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
uint32_t MEMResizeForMBlockExpHeap(MEMExpandedHeap *heap, uint8_t *address, uint32_t size)
void MEMiDumpExpHeap(MEMExpandedHeap *heap)
MEMExpHeapDirection MEMGetAllocDirForMBlockExpHeap(uint8_t *addr)
uint32_t MEMGetAllocatableSizeForExpHeap(MEMExpandedHeap *heap)
MEMExpHeapDirection
Definition: expandedheap.h:30
uint32_t MEMGetTotalFreeSizeForExpHeap(MEMExpandedHeap *heap)
MEMExpHeapMode
Definition: expandedheap.h:24
uint32_t MEMGetAllocatableSizeForExpHeapEx(MEMExpandedHeap *heap, int alignment)
void * MEMAllocFromExpHeapEx(MEMExpandedHeap *heap, uint32_t size, int alignment)
uint16_t MEMGetGroupIDForMBlockExpHeap(uint8_t *addr)
void MEMFreeToExpHeap(MEMExpandedHeap *heap, uint8_t *block)
MEMExpandedHeap * MEMDestroyExpHeap(MEMExpandedHeap *heap)
MEMExpHeapMode MEMGetAllocModeForExpHeap(MEMExpandedHeap *heap)
MEMExpandedHeap * MEMCreateExpHeapEx(MEMExpandedHeap *heap, uint32_t size, uint16_t flags)
uint32_t MEMGetSizeForMBlockExpHeap(uint8_t *addr)
uint32_t MEMAdjustExpHeap(MEMExpandedHeap *heap)
uint16_t MEMSetGroupIDForExpHeap(MEMExpandedHeap *heap, uint16_t id)
MEMExpHeapMode MEMSetAllocModeForExpHeap(MEMExpandedHeap *heap, MEMExpHeapMode mode)
MEMExpandedHeap * MEMCreateExpHeap(MEMExpandedHeap *heap, uint32_t size)
void * MEMAllocFromExpHeap(MEMExpandedHeap *heap, uint32_t size)
uint16_t MEMGetGroupIDForExpHeap(MEMExpandedHeap *heap)