ScummVM API documentation
M4::SysFile Class Reference

Public Member Functions

 SysFile (const Common::String &fname, FileMode myfmode=BINARY)
 
bool exists ()
 
uint32 size ()
 
uint32 get_pos ()
 
bool seek (uint32 pos)
 
bool seek_ahead (int32 amount)
 
uint32 read (MemHandle bufferHandle)
 
int32 read (MemHandle bufferHandle, int32 n)
 
int32 read (byte *bufferHandle, int32 n)
 
byte readByte ()
 
int8 readSByte ()
 
uint16 readUint16LE ()
 
int16 readSint16LE ()
 
uint32 readUint32LE ()
 
int32 readSint32LE ()
 
void close ()
 

Public Attributes

Common::String filename
 

Member Function Documentation

◆ exists()

bool M4::SysFile::exists ( )

Return true if the file exists

◆ size()

uint32 M4::SysFile::size ( )

Returns the file size

◆ get_pos()

uint32 M4::SysFile::get_pos ( )

Gets the current position

◆ seek()

bool M4::SysFile::seek ( uint32  pos)

Seek to a given position

◆ seek_ahead()

bool M4::SysFile::seek_ahead ( int32  amount)

Seek ahaead by a given amount

◆ read()

uint32 M4::SysFile::read ( MemHandle  bufferHandle)

Read data

◆ readByte()

byte M4::SysFile::readByte ( )

Read in a 8-bit value

◆ readUint16LE()

uint16 M4::SysFile::readUint16LE ( )

Read in a 16-bit value

◆ readUint32LE()

uint32 M4::SysFile::readUint32LE ( )

Read in a 32-bit value

◆ close()

void M4::SysFile::close ( )

Close the file


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