mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-12-18 02:06:51 +00:00
35 lines
708 B
C
35 lines
708 B
C
#pragma once
|
|
|
|
#include "export.h"
|
|
|
|
|
|
struct SHandle
|
|
{
|
|
i32 field_0;
|
|
i32 field_4;
|
|
};
|
|
|
|
struct SBlockHeader {
|
|
|
|
unsigned int ParentHeap;
|
|
SBlockHeader* Next;
|
|
int field_8;
|
|
unsigned char padding[0x20-0x8-4];
|
|
|
|
};
|
|
|
|
EXPORT void AddToFreeList(SBlockHeader *pNewFreeBlock, int Heap);
|
|
EXPORT void Mem_Init(void);
|
|
EXPORT void Mem_Delete(void*);
|
|
EXPORT void Mem_ShrinkX(void*, unsigned int);
|
|
EXPORT void Mem_Copy(void*, void*, int);
|
|
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*);
|
|
|
|
EXPORT void *Mem_RecoverPointer(SHandle*);
|
|
|
|
void validate_SBlockHeader(void);
|
|
void validate_SHandle(void);
|