summaryrefslogtreecommitdiffstats
path: root/src/rw/MemoryMgr.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-11-28 16:16:15 +0100
committeraap <aap@papnet.eu>2020-11-28 17:05:57 +0100
commita8035b64662e9b9fe6689ec60e5087ff95bc2672 (patch)
tree31f809fff530c5b7b8ea2a4714766d3284b0caf5 /src/rw/MemoryMgr.h
parentMerge branch 'master' of github.com:GTAmodding/re3 (diff)
downloadre3-a8035b64662e9b9fe6689ec60e5087ff95bc2672.tar
re3-a8035b64662e9b9fe6689ec60e5087ff95bc2672.tar.gz
re3-a8035b64662e9b9fe6689ec60e5087ff95bc2672.tar.bz2
re3-a8035b64662e9b9fe6689ec60e5087ff95bc2672.tar.lz
re3-a8035b64662e9b9fe6689ec60e5087ff95bc2672.tar.xz
re3-a8035b64662e9b9fe6689ec60e5087ff95bc2672.tar.zst
re3-a8035b64662e9b9fe6689ec60e5087ff95bc2672.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);