wut v1.8.0
Wii U Toolchain
Loading...
Searching...
No Matches
memfrmheap.h
Go to the documentation of this file.
1#pragma once
2#include <wut.h>
3#include "memheap.h"
4
11#ifdef __cplusplus
12extern "C" {
13#endif
14
21
22typedef struct MEMFrmHeap MEMFrmHeap;
24
26{
27 uint32_t tag;
28 void *head;
29 void *tail;
31};
32WUT_CHECK_OFFSET(MEMFrmHeapState, 0x00, tag);
33WUT_CHECK_OFFSET(MEMFrmHeapState, 0x04, head);
34WUT_CHECK_OFFSET(MEMFrmHeapState, 0x08, tail);
35WUT_CHECK_OFFSET(MEMFrmHeapState, 0x0C, previous);
36WUT_CHECK_SIZE(MEMFrmHeapState, 0x10);
37
45WUT_CHECK_OFFSET(MEMFrmHeap, 0x00, header);
46WUT_CHECK_OFFSET(MEMFrmHeap, 0x40, head);
47WUT_CHECK_OFFSET(MEMFrmHeap, 0x44, tail);
48WUT_CHECK_OFFSET(MEMFrmHeap, 0x48, previousState);
49WUT_CHECK_SIZE(MEMFrmHeap, 0x4C);
50
53 uint32_t size,
54 uint32_t flags);
55
56void *
58
59void *
61 uint32_t size,
62 int alignment);
63
64void
67
68BOOL
70 uint32_t tag);
71
72BOOL
74 uint32_t tag);
75
76uint32_t
78
79uint32_t
81 uint32_t addr,
82 uint32_t size);
83
84uint32_t
86 int alignment);
87
88#ifdef __cplusplus
89}
90#endif
91
MEMHeapHeader header
Definition memfrmheap.h:40
MEMFrmHeapState * previous
Definition memfrmheap.h:30
MEMFrmHeapState * previousState
Definition memfrmheap.h:43
MEMHeapHandle MEMCreateFrmHeapEx(void *heap, uint32_t size, uint32_t flags)
MEMFrmHeapFreeMode
Definition memfrmheap.h:16
uint32_t MEMResizeForMBlockFrmHeap(MEMHeapHandle heap, uint32_t addr, uint32_t size)
uint32_t MEMAdjustFrmHeap(MEMHeapHandle heap)
void * MEMDestroyFrmHeap(MEMHeapHandle heap)
void * MEMAllocFromFrmHeapEx(MEMHeapHandle heap, uint32_t size, int alignment)
BOOL MEMFreeByStateToFrmHeap(MEMHeapHandle heap, uint32_t tag)
void MEMFreeToFrmHeap(MEMHeapHandle heap, MEMFrmHeapFreeMode mode)
uint32_t MEMGetAllocatableSizeForFrmHeapEx(MEMHeapHandle heap, int alignment)
BOOL MEMRecordStateForFrmHeap(MEMHeapHandle heap, uint32_t tag)
@ MEM_FRM_HEAP_FREE_ALL
Definition memfrmheap.h:19
@ MEM_FRM_HEAP_FREE_TAIL
Definition memfrmheap.h:18
@ MEM_FRM_HEAP_FREE_HEAD
Definition memfrmheap.h:17
int32_t BOOL
Definition wut_types.h:7