Files
tp/include/JSystem/JKernel/JKRAramBlock/JKRAramBlock.h
T
2020-12-26 11:31:49 -05:00

35 lines
722 B
C++

#ifndef __JKRARAMBLOCK_H__
#define __JKRARAMBLOCK_H__
#include "JSystem/JSupport/JSUList/JSUList.h"
#include "dolphin/types.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<JKRAramBlock> mBlockLink;
u32 mAddress;
u32 mSize;
u32 field_;
u8 mGroupId;
u8 mIsTempMemory;
u8 padding[2];
};
#endif