summaryrefslogtreecommitdiffstats
path: root/src/rw/MemoryMgr.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-18 14:19:03 +0100
committeraap <aap@papnet.eu>2020-12-18 14:19:03 +0100
commitf3a356375e084caf50eed38b06ca6885d2d92b9d (patch)
tree53300108969fc1cc9efe48d8f24d8853974465ba /src/rw/MemoryMgr.h
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
downloadre3-f3a356375e084caf50eed38b06ca6885d2d92b9d.tar
re3-f3a356375e084caf50eed38b06ca6885d2d92b9d.tar.gz
re3-f3a356375e084caf50eed38b06ca6885d2d92b9d.tar.bz2
re3-f3a356375e084caf50eed38b06ca6885d2d92b9d.tar.lz
re3-f3a356375e084caf50eed38b06ca6885d2d92b9d.tar.xz
re3-f3a356375e084caf50eed38b06ca6885d2d92b9d.tar.zst
re3-f3a356375e084caf50eed38b06ca6885d2d92b9d.zip
Diffstat (limited to 'src/rw/MemoryMgr.h')
-rw-r--r--src/rw/MemoryMgr.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/rw/MemoryMgr.h b/src/rw/MemoryMgr.h
new file mode 100644
index 00000000..e2962806
--- /dev/null
+++ b/src/rw/MemoryMgr.h
@@ -0,0 +1,12 @@
+#pragma once
+
+extern RwMemoryFunctions memFuncs;
+void InitMemoryMgr(void);
+
+void *MemoryMgrMalloc(size_t size);
+void *MemoryMgrRealloc(void *ptr, size_t size);
+void *MemoryMgrCalloc(size_t num, size_t size);
+void MemoryMgrFree(void *ptr);
+
+void *RwMallocAlign(RwUInt32 size, RwUInt32 align);
+void RwFreeAlign(void *mem);