Files
tp/include/JSystem/JKernel/JKRAramBlock/JKRAramBlock.h
T
Jonathan Wase 86f892c3d3 JKernel (#20)
* JKRDvdArchive.s split

* JKRMemArchive.s split

* JKRAramArchive.s split

* JKRCompArchive.s split

* JKRDecomp.s split

* JKRDvdRipper.s split

* JKRAramBlock.s split

* JKRAramHeap.s split

* JKRAramPiece.s split

* JKRAramStream.s split

* removed unused .s files

* JKRDvdAramRipper.s split

* JKRAram.s split

* cleanup and making vtables easier to debug

* fixed merge errors

* fixed JKRFileLoader::fetchVolumeName

Co-authored-by: Pheenoh <pheenoh@gmail.com>
2020-12-06 15:02:25 -05:00

43 lines
774 B
C++

#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<JKRAramBlock> mBlockLink;
u32 mAddress;
u32 mSize;
u32 field_;
u8 mGroupId;
u8 mIsTempMemory;
u8 padding[2];
};
#endif