35 lines
708 B
C
Raw Normal View History

#pragma once
#include "export.h"
2024-05-02 20:24:33 +02:00
struct SHandle
{
2024-06-10 18:32:32 +02:00
i32 field_0;
i32 field_4;
};
2024-05-02 20:24:33 +02:00
struct SBlockHeader {
unsigned int ParentHeap;
SBlockHeader* Next;
int field_8;
unsigned char padding[0x20-0x8-4];
};
EXPORT void AddToFreeList(SBlockHeader *pNewFreeBlock, int Heap);
2024-05-05 18:57:21 +02:00
EXPORT void Mem_Init(void);
2024-05-05 19:13:35 +02:00
EXPORT void Mem_Delete(void*);
2024-05-05 20:13:43 +02:00
EXPORT void Mem_ShrinkX(void*, unsigned int);
EXPORT void Mem_Copy(void*, void*, int);
2024-05-05 20:45:36 +02:00
EXPORT void *Mem_NewTop(unsigned int);
EXPORT void *Mem_CoreNew(unsigned int);
EXPORT void *DCMem_New(unsigned int, int, int, void*, bool);
EXPORT SHandle Mem_MakeHandle(void*);
2024-05-05 21:25:48 +02:00
EXPORT void *Mem_RecoverPointer(SHandle*);
2024-05-02 20:24:33 +02:00
void validate_SBlockHeader(void);
2024-05-05 21:25:48 +02:00
void validate_SHandle(void);