#ifndef __JKRARAMBLOCK_H__ #define __JKRARAMBLOCK_H__ #include "dolphin/types.h" #include "JSystem/JSupport/JSUList/JSUList.h" class JKRAramHeap; class JKRAramBlock { public: JKRAramBlock(u32, u32, u32, u8, bool); virtual ~JKRAramBlock(); void allocHead(u32, u8, JKRAramHeap*); void allocTail(u32, u8, JKRAramHeap*); void* getAddress() { return (void*)this->mAddress; } u32 getSize() { return this->mSize; } bool isTempMemory() { return this->mIsTempMemory; } void newGroupID(u8 groupId) { this->mGroupId = groupId; } public: JSULink mBlockLink; u32 mAddress; u32 mSize; u32 field_; u8 mGroupId; u8 mIsTempMemory; u8 padding[2]; }; #endif