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 struct MEMExpandedHeap
17 {
18 };
19 UNKNOWN_SIZE(MEMExpandedHeap);
20 
21 typedef enum MEMExpHeapMode
22 {
26 
27 typedef enum MEMExpHeapDirection
28 {
32 
33 MEMExpandedHeap *
34 MEMCreateExpHeap(MEMExpandedHeap *heap, uint32_t size);
35 
36 MEMExpandedHeap *
37 MEMCreateExpHeapEx(MEMExpandedHeap *heap, uint32_t size, uint16_t flags);
38 
39 MEMExpandedHeap *
40 MEMDestroyExpHeap(MEMExpandedHeap *heap);
41 
42 void
43 MEMiDumpExpHeap(MEMExpandedHeap *heap);
44 
45 void *
46 MEMAllocFromExpHeap(MEMExpandedHeap *heap, uint32_t size);
47 
48 void *
49 MEMAllocFromExpHeapEx(MEMExpandedHeap *heap, uint32_t size, int alignment);
50 
51 void
52 MEMFreeToExpHeap(MEMExpandedHeap *heap, uint8_t *block);
53 
55 MEMSetAllocModeForExpHeap(MEMExpandedHeap *heap, MEMExpHeapMode mode);
56 
58 MEMGetAllocModeForExpHeap(MEMExpandedHeap *heap);
59 
60 uint32_t
61 MEMAdjustExpHeap(MEMExpandedHeap *heap);
62 
63 uint32_t
64 MEMResizeForMBlockExpHeap(MEMExpandedHeap *heap, uint8_t *address, uint32_t size);
65 
66 uint32_t
67 MEMGetTotalFreeSizeForExpHeap(MEMExpandedHeap *heap);
68 
69 uint32_t
70 MEMGetAllocatableSizeForExpHeap(MEMExpandedHeap *heap);
71 
72 uint32_t
73 MEMGetAllocatableSizeForExpHeapEx(MEMExpandedHeap *heap, int alignment);
74 
75 uint16_t
76 MEMSetGroupIDForExpHeap(MEMExpandedHeap *heap, uint16_t id);
77 
78 uint16_t
79 MEMGetGroupIDForExpHeap(MEMExpandedHeap *heap);
80 
81 uint32_t
82 MEMGetSizeForMBlockExpHeap(uint8_t *addr);
83 
84 uint16_t
85 MEMGetGroupIDForMBlockExpHeap(uint8_t *addr);
86 
88 MEMGetAllocDirForMBlockExpHeap(uint8_t *addr);
89 
90 #ifdef __cplusplus
91 }
92 #endif
93 
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:27
uint32_t MEMGetTotalFreeSizeForExpHeap(MEMExpandedHeap *heap)
MEMExpHeapMode
Definition: expandedheap.h:21
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)