wut  1.0.0-beta9
Wii U Toolchain
memlist.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 
16 
18 {
19  void *prev;
20  void *next;
21 };
22 WUT_CHECK_OFFSET(MEMMemoryLink, 0x0, prev);
23 WUT_CHECK_OFFSET(MEMMemoryLink, 0x4, next);
24 WUT_CHECK_SIZE(MEMMemoryLink, 0x8);
25 
27 {
28  void *head;
29  void *tail;
30  uint16_t count;
32 };
33 WUT_CHECK_OFFSET(MEMMemoryList, 0x0, head);
34 WUT_CHECK_OFFSET(MEMMemoryList, 0x4, tail);
35 WUT_CHECK_OFFSET(MEMMemoryList, 0x8, count);
36 WUT_CHECK_OFFSET(MEMMemoryList, 0xa, offsetToMemoryLink);
37 WUT_CHECK_SIZE(MEMMemoryList, 0xc);
38 
39 void
41  uint16_t offsetToMemoryLink);
42 
43 void
45  void *object);
46 
47 void
49  void *object);
50 
51 void
53  void *before,
54  void *object);
55 
56 void
58  void *object);
59 
60 void *
62  void *object);
63 
64 void *
66  void *object);
67 
68 void *
70  uint16_t n);
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
MEMGetPrevListObject
void * MEMGetPrevListObject(MEMMemoryList *list, void *object)
MEMInitList
void MEMInitList(MEMMemoryList *list, uint16_t offsetToMemoryLink)
MEMPrependListObject
void MEMPrependListObject(MEMMemoryList *list, void *object)
MEMGetNthListObject
void * MEMGetNthListObject(MEMMemoryList *list, uint16_t n)
MEMInsertListObject
void MEMInsertListObject(MEMMemoryList *list, void *before, void *object)
MEMMemoryList::offsetToMemoryLink
uint16_t offsetToMemoryLink
Definition: memlist.h:31
MEMMemoryList::head
void * head
Definition: memlist.h:28
MEMGetNextListObject
void * MEMGetNextListObject(MEMMemoryList *list, void *object)
wut.h
MEMMemoryList::count
uint16_t count
Definition: memlist.h:30
MEMMemoryLink::prev
void * prev
Definition: memlist.h:19
MEMMemoryList
Definition: memlist.h:26
MEMMemoryLink::next
void * next
Definition: memlist.h:20
MEMMemoryList::tail
void * tail
Definition: memlist.h:29
MEMRemoveListObject
void MEMRemoveListObject(MEMMemoryList *list, void *object)
MEMAppendListObject
void MEMAppendListObject(MEMMemoryList *list, void *object)