WUT  0.1
Wii U Toolchain
frameheap.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 uint32_t MEMFrameHeapFreeMode;
15 
16 enum MEMFrameHeapFreeMode
17 {
20 };
21 
22 MEMFrameHeap *
23 MEMCreateFrmHeap(MEMFrameHeap *heap,
24  uint32_t size);
25 
26 MEMFrameHeap *
27 MEMCreateFrmHeapEx(MEMFrameHeap *heap,
28  uint32_t size,
29  uint16_t flags);
30 
31 void *
32 MEMDestroyFrmHeap(MEMFrameHeap *heap);
33 
34 void *
35 MEMAllocFromFrmHeap(MEMFrameHeap *heap,
36  uint32_t size);
37 
38 void *
39 MEMAllocFromFrmHeapEx(MEMFrameHeap *heap,
40  uint32_t size,
41  int alignment);
42 
43 void
44 MEMFreeToFrmHeap(MEMFrameHeap *heap,
45  MEMFrameHeapFreeMode mode);
46 
47 BOOL
48 MEMRecordStateForFrmHeap(MEMFrameHeap *heap,
49  uint32_t tag);
50 
51 BOOL
52 MEMFreeByStateToFrmHeap(MEMFrameHeap *heap,
53  uint32_t tag);
54 
55 uint32_t
56 MEMAdjustFrmHeap(MEMFrameHeap *heap);
57 
58 uint32_t
59 MEMResizeForMBlockFrmHeap(MEMFrameHeap *heap,
60  uint32_t addr,
61  uint32_t size);
62 
63 uint32_t
64 MEMGetAllocatableSizeForFrmHeap(MEMFrameHeap *heap);
65 
66 uint32_t
67 MEMGetAllocatableSizeForFrmHeapEx(MEMFrameHeap *heap,
68  int alignment);
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
uint32_t MEMGetAllocatableSizeForFrmHeapEx(MEMFrameHeap *heap, int alignment)
BOOL MEMFreeByStateToFrmHeap(MEMFrameHeap *heap, uint32_t tag)
uint32_t MEMResizeForMBlockFrmHeap(MEMFrameHeap *heap, uint32_t addr, uint32_t size)
MEMFrameHeap * MEMCreateFrmHeap(MEMFrameHeap *heap, uint32_t size)
void * MEMAllocFromFrmHeap(MEMFrameHeap *heap, uint32_t size)
void * MEMAllocFromFrmHeapEx(MEMFrameHeap *heap, uint32_t size, int alignment)
BOOL MEMRecordStateForFrmHeap(MEMFrameHeap *heap, uint32_t tag)
MEMFrameHeapFreeMode
Definition: frameheap.h:16
int BOOL
Definition: wut_types.h:4
uint32_t MEMGetAllocatableSizeForFrmHeap(MEMFrameHeap *heap)
MEMFrameHeap * MEMCreateFrmHeapEx(MEMFrameHeap *heap, uint32_t size, uint16_t flags)
uint32_t MEMAdjustFrmHeap(MEMFrameHeap *heap)
void * MEMDestroyFrmHeap(MEMFrameHeap *heap)
void MEMFreeToFrmHeap(MEMFrameHeap *heap, MEMFrameHeapFreeMode mode)