From e300d01291e7abd17209fb9ff337f80771c90a33 Mon Sep 17 00:00:00 2001 From: superp00t Date: Wed, 29 Apr 2026 03:05:33 -0400 Subject: [PATCH] feat(profile): add mempool --- .../include/common/mempool.h | 29 +++++++++++++++++++ .../symbol/mempool/func.sym | 4 +++ 2 files changed, 33 insertions(+) create mode 100644 profile/3.3.5a-windows-386/include/common/mempool.h create mode 100644 profile/3.3.5a-windows-386/symbol/mempool/func.sym diff --git a/profile/3.3.5a-windows-386/include/common/mempool.h b/profile/3.3.5a-windows-386/include/common/mempool.h new file mode 100644 index 0000000..0c50f54 --- /dev/null +++ b/profile/3.3.5a-windows-386/include/common/mempool.h @@ -0,0 +1,29 @@ +#ifndef COMMON_MEM_POOL_H +#define COMMON_MEM_POOL_H + +DECLARE_STRUCT(MemPool); +DECLARE_STRUCT(MemChunk); + +#include "storm/array.h" + +typedef MemChunk* pointer_to_MemChunk; +STORM_TS_FIXED_ARRAY(pointer_to_MemChunk); + +struct MemChunk { + void* m_memblocks; + void* m_free; + uint32_t m_unk2; + uint32_t m_blockSize; + uint32_t m_numBlocks; +}; + +// 24 bytes +struct MemPool { + TSFixedArray_pointer_to_MemChunk m_memchunks; + // + uint32_t m_unk3; + uint32_t m_blockSize; + uint32_t m_unk5; +}; + +#endif diff --git a/profile/3.3.5a-windows-386/symbol/mempool/func.sym b/profile/3.3.5a-windows-386/symbol/mempool/func.sym new file mode 100644 index 0000000..91df077 --- /dev/null +++ b/profile/3.3.5a-windows-386/symbol/mempool/func.sym @@ -0,0 +1,4 @@ +MemPool__MemFree 00855670 f end=008556D6 type="int32_t __thiscall func(MemPool* this, void* ptr)" +MemPool__MemAlloc 00855820 f end=008558DB type="void* __thiscall func(MemPool* this)" +MemChunk__constructor 00855570 f end=008555D1 type="MemChunk* __thiscall func(MemChunk* this, uint32_t blockSize, uint32_t a2)" +MemPool__destructor 008556E0 f end=0085573C type="void __thiscall func(MemPool* this)"