Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JORFile Class Reference

#include <JORFile.h>

+ Collaboration diagram for JORFile:

Public Types

enum  ECommand { ECommand_OPEN , ECommand_CLOSE , ECommand_READ , ECommand_WRITE }
 
enum  EStatus {
  EStatus_WAIT , EStatus_READ_BEGIN , EStatus_READ_DATA , EStatus_READ_END ,
  EStatus_WRITE_BEGIN , EStatus_WRITE_DATA , EStatus_WRITE_END
}
 
enum  EFlags {
  EFlags_READ = (1 << 0) , EFlags_WRITE = (1 << 1) , EFlags_DEFAULT_EXT = (1 << 4) , EFlags_UNK_0x20 = (1 << 5) ,
  EFlags_HAS_SUFFIX = (1 << 6)
}
 

Public Member Functions

 JORFile ()
 
int countMaskSize (const char *mask)
 
void setBuffer (void *buffer, s32 length)
 
chargetFilename ()
 
u32 getHandle () const
 
JSUMemoryOutputStreamgetDataStream ()
 
void setHandle (u32 handle)
 
void setFileLength (s32 length)
 
void setNFileName (u16 length)
 
void setNBaseName (u16 length)
 
void setNExtensionName (u16 length)
 
void setStatus (s32 status)
 
virtual ~JORFile ()
 
virtual int open (const char *path, u32 flags, const char *extMask, const char *defaultExt, const char *, const char *fileSuffix)
 
virtual int open (u32 flags, const char *extMask, const char *defaultExt, const char *, const char *fileSuffix)
 
virtual void close ()
 
virtual s32 readData (void *buffer, s32 length)
 
virtual s32 writeData (const void *buffer, s32 length)
 
virtual void readBegin_ (s32 len)
 
virtual void readLoop_ ()
 
virtual void writeBegin_ (s32 len)
 
virtual void writeLoop_ (const void *pBuffer, s32 size, u32 pos)
 
virtual void writeDone_ (s32 len)
 
virtual void waitMessage_ ()
 
virtual s32 getFileSize () const
 

Public Attributes

u32 mHandle
 
s32 mFileLength
 
s32 mStatus
 
u16 mNFileName
 
u16 mNBaseName
 
u16 mNExtensionName
 
u16 mFlags
 
int field_0x18
 
JSUMemoryOutputStream mDataStream
 
char mFilename [8]
 

Member Enumeration Documentation

◆ ECommand

Enumerator
ECommand_OPEN 
ECommand_CLOSE 
ECommand_READ 
ECommand_WRITE 

◆ EFlags

Enumerator
EFlags_READ 
EFlags_WRITE 
EFlags_DEFAULT_EXT 
EFlags_UNK_0x20 
EFlags_HAS_SUFFIX 

◆ EStatus

Enumerator
EStatus_WAIT 
EStatus_READ_BEGIN 
EStatus_READ_DATA 
EStatus_READ_END 
EStatus_WRITE_BEGIN 
EStatus_WRITE_DATA 
EStatus_WRITE_END 

Constructor & Destructor Documentation

◆ JORFile()

JORFile::JORFile ( )

◆ ~JORFile()

virtual JORFile::~JORFile ( )
inlinevirtual

Member Function Documentation

◆ close()

void JORFile::close ( )
virtual

◆ countMaskSize()

int JORFile::countMaskSize ( const char mask)

◆ getDataStream()

JSUMemoryOutputStream & JORFile::getDataStream ( )
inline

◆ getFilename()

char * JORFile::getFilename ( )
inline

◆ getFileSize()

virtual s32 JORFile::getFileSize ( ) const
virtual

◆ getHandle()

u32 JORFile::getHandle ( ) const
inline

◆ open() [1/2]

int JORFile::open ( const char path,
u32  flags,
const char extMask,
const char defaultExt,
const char param_4,
const char fileSuffix 
)
virtual

◆ open() [2/2]

virtual int JORFile::open ( u32  flags,
const char extMask,
const char defaultExt,
const char ,
const char fileSuffix 
)
virtual

◆ readBegin_()

void JORFile::readBegin_ ( s32  len)
virtual

◆ readData()

s32 JORFile::readData ( void buffer,
s32  length 
)
virtual

◆ readLoop_()

void JORFile::readLoop_ ( )
virtual

◆ setBuffer()

void JORFile::setBuffer ( void buffer,
s32  length 
)

◆ setFileLength()

void JORFile::setFileLength ( s32  length)
inline

◆ setHandle()

void JORFile::setHandle ( u32  handle)
inline

◆ setNBaseName()

void JORFile::setNBaseName ( u16  length)
inline

◆ setNExtensionName()

void JORFile::setNExtensionName ( u16  length)
inline

◆ setNFileName()

void JORFile::setNFileName ( u16  length)
inline

◆ setStatus()

void JORFile::setStatus ( s32  status)
inline

◆ waitMessage_()

void JORFile::waitMessage_ ( )
virtual

◆ writeBegin_()

void JORFile::writeBegin_ ( s32  len)
virtual

◆ writeData()

s32 JORFile::writeData ( const void buffer,
s32  length 
)
virtual

◆ writeDone_()

void JORFile::writeDone_ ( s32  len)
virtual

◆ writeLoop_()

void JORFile::writeLoop_ ( const void pBuffer,
s32  size,
u32  pos 
)
virtual

Member Data Documentation

◆ field_0x18

int JORFile::field_0x18

◆ mDataStream

JSUMemoryOutputStream JORFile::mDataStream

◆ mFileLength

s32 JORFile::mFileLength

◆ mFilename

char JORFile::mFilename[8]

◆ mFlags

u16 JORFile::mFlags

◆ mHandle

u32 JORFile::mHandle

◆ mNBaseName

u16 JORFile::mNBaseName

◆ mNExtensionName

u16 JORFile::mNExtensionName

◆ mNFileName

u16 JORFile::mNFileName

◆ mStatus

s32 JORFile::mStatus

The documentation for this class was generated from the following files: