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 MEMCreateExpHeapEx(MEMExpandedHeap *heap, uint32_t size, uint16_t flags);
35 
36 MEMExpandedHeap *
37 MEMDestroyExpHeap(MEMExpandedHeap *heap);
38 
39 void *
40 MEMAllocFromExpHeapEx(MEMExpandedHeap *heap, uint32_t size, int alignment);
41 
42 void
43 MEMFreeToExpHeap(MEMExpandedHeap *heap, uint8_t *block);
44 
46 MEMSetAllocModeForExpHeap(MEMExpandedHeap *heap, MEMExpHeapMode mode);
47 
49 MEMGetAllocModeForExpHeap(MEMExpandedHeap *heap);
50 
51 uint32_t
52 MEMAdjustExpHeap(MEMExpandedHeap *heap);
53 
54 uint32_t
55 MEMResizeForMBlockExpHeap(MEMExpandedHeap *heap, uint8_t *address, uint32_t size);
56 
57 uint32_t
58 MEMGetTotalFreeSizeForExpHeap(MEMExpandedHeap *heap);
59 
60 uint32_t
61 MEMGetAllocatableSizeForExpHeapEx(MEMExpandedHeap *heap, int alignment);
62 
63 uint16_t
64 MEMSetGroupIDForExpHeap(MEMExpandedHeap *heap, uint16_t id);
65 
66 uint16_t
67 MEMGetGroupIDForExpHeap(MEMExpandedHeap *heap);
68 
69 uint32_t
70 MEMGetSizeForMBlockExpHeap(uint8_t *addr);
71 
72 uint16_t
73 MEMGetGroupIDForMBlockExpHeap(uint8_t *addr);
74 
76 MEMGetAllocDirForMBlockExpHeap(uint8_t *addr);
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
uint32_t MEMResizeForMBlockExpHeap(MEMExpandedHeap *heap, uint8_t *address, uint32_t size)
MEMExpHeapDirection MEMGetAllocDirForMBlockExpHeap(uint8_t *addr)
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)
uint16_t MEMGetGroupIDForExpHeap(MEMExpandedHeap *heap)