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