wut
1.0.0-beta9
Wii U Toolchain
include
coreinit
memunitheap.h
Go to the documentation of this file.
1
#pragma once
2
#include <
wut.h
>
3
#include "
memheap.h
"
4
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
15
typedef
struct
MEMUnitHeap
MEMUnitHeap
;
16
typedef
struct
MEMUnitHeapFreeBlock
MEMUnitHeapFreeBlock
;
17
18
struct
MEMUnitHeapFreeBlock
19
{
20
MEMUnitHeapFreeBlock
*
next
;
21
};
22
WUT_CHECK_OFFSET(
MEMUnitHeapFreeBlock
, 0x00, next);
23
WUT_CHECK_SIZE(
MEMUnitHeapFreeBlock
, 0x04);
24
25
struct
WUT_PACKED
MEMUnitHeap
26
{
27
MEMHeapHeader
header
;
28
MEMUnitHeapFreeBlock
*
freeBlocks
;
29
uint32_t
blockSize
;
30
};
31
WUT_CHECK_OFFSET(
MEMUnitHeap
, 0x00, header);
32
WUT_CHECK_OFFSET(
MEMUnitHeap
, 0x40, freeBlocks);
33
WUT_CHECK_OFFSET(
MEMUnitHeap
, 0x44, blockSize);
34
WUT_CHECK_SIZE(
MEMUnitHeap
, 0x48);
35
36
MEMHeapHandle
37
MEMCreateUnitHeapEx
(
void
*heap,
38
uint32_t size,
39
uint32_t blockSize,
40
int32_t alignment,
41
uint16_t flags);
42
43
void
*
44
MEMDestroyUnitHeap
(
MEMHeapHandle
heap);
45
46
void
*
47
MEMAllocFromUnitHeap
(
MEMHeapHandle
heap);
48
49
void
50
MEMFreeToUnitHeap
(
MEMHeapHandle
heap,
51
void
*block);
52
53
void
54
MEMiDumpUnitHeap
(
MEMHeapHandle
heap);
55
56
uint32_t
57
MEMCountFreeBlockForUnitHeap
(
MEMHeapHandle
heap);
58
59
uint32_t
60
MEMCalcHeapSizeForUnitHeap
(uint32_t blockSize,
61
uint32_t count,
62
int32_t alignment);
63
64
#ifdef __cplusplus
65
}
66
#endif
67
MEMUnitHeap::header
MEMHeapHeader header
Definition:
memunitheap.h:27
MEMUnitHeapFreeBlock::next
MEMUnitHeapFreeBlock * next
Definition:
memunitheap.h:20
MEMUnitHeap::freeBlocks
MEMUnitHeapFreeBlock * freeBlocks
Definition:
memunitheap.h:28
memheap.h
MEMiDumpUnitHeap
void MEMiDumpUnitHeap(MEMHeapHandle heap)
wut.h
MEMDestroyUnitHeap
void * MEMDestroyUnitHeap(MEMHeapHandle heap)
MEMCalcHeapSizeForUnitHeap
uint32_t MEMCalcHeapSizeForUnitHeap(uint32_t blockSize, uint32_t count, int32_t alignment)
MEMCreateUnitHeapEx
MEMHeapHandle MEMCreateUnitHeapEx(void *heap, uint32_t size, uint32_t blockSize, int32_t alignment, uint16_t flags)
MEMUnitHeap
Definition:
memunitheap.h:25
MEMUnitHeapFreeBlock
Definition:
memunitheap.h:18
MEMFreeToUnitHeap
void MEMFreeToUnitHeap(MEMHeapHandle heap, void *block)
MEMUnitHeap::blockSize
uint32_t blockSize
Definition:
memunitheap.h:29
MEMCountFreeBlockForUnitHeap
uint32_t MEMCountFreeBlockForUnitHeap(MEMHeapHandle heap)
MEMHeapHeader
Definition:
memheap.h:51
MEMAllocFromUnitHeap
void * MEMAllocFromUnitHeap(MEMHeapHandle heap)
Generated by
1.8.17