Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JKRFile.h
Go to the documentation of this file.
1#ifndef JKRFILE_H
2#define JKRFILE_H
3
5
10class JKRFile : public JKRDisposer {
11public:
13 virtual ~JKRFile() {}
14
15 s32 read(void*, s32, s32);
16
17 bool isAvailable() const { return mIsAvailable; }
18
19public:
20 /* vt[03] */ virtual bool open(const char*) = 0;
21 /* vt[04] */ virtual void close() = 0;
22 /* vt[05] */ virtual s32 readData(void*, s32, s32) = 0;
23 /* vt[06] */ virtual s32 writeData(const void*, s32, s32) = 0;
24 /* vt[07] */ virtual s32 getFileSize() const = 0;
25
26protected:
27 /* 0x00 */ // vtable
28 /* 0x04 */ // JKRDisposer
29 /* 0x18 */ bool mIsAvailable;
30 /* 0x19 */ u8 field_0x19[3];
31};
32
33#endif /* JKRFILE_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JKRDisposer.h:12
Definition JKRFile.h:10
bool isAvailable() const
Definition JKRFile.h:17
virtual ~JKRFile()
Definition JKRFile.h:13
s32 read(void *, s32, s32)
Definition JKRFile.cpp:5
u8 field_0x19[3]
Definition JKRFile.h:30
virtual s32 readData(void *, s32, s32)=0
virtual s32 writeData(const void *, s32, s32)=0
virtual void close()=0
JKRFile()
Definition JKRFile.h:12
virtual s32 getFileSize() const =0
virtual bool open(const char *)=0
bool mIsAvailable
Definition JKRFile.h:29
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8