5 #ifndef __I_READ_FILE_H_INCLUDED__ 6 #define __I_READ_FILE_H_INCLUDED__ 24 virtual s32 read(
void* buffer,
u32 sizeToRead) = 0;
32 virtual bool seek(
long finalPos,
bool relativeMovement =
false) = 0;
36 virtual long getSize()
const = 0;
40 virtual long getPos()
const = 0;
Interface providing read acess to a file.
IReadFile * createMemoryReadFile(void *memory, long size, const io::path &fileName, bool deleteMemoryWhenDropped)
Internal function, please do not use.
virtual long getPos() const =0
Get the current position in the file.
virtual s32 read(void *buffer, u32 sizeToRead)=0
Reads an amount of bytes from the file.
Everything in the Irrlicht Engine can be found in this namespace.
IReadFile * createLimitReadFile(const io::path &fileName, IReadFile *alreadyOpenedFile, long pos, long areaSize)
Internal function, please do not use.
File containing useful basic utility functions.
signed int s32
32 bit signed variable.
virtual long getSize() const =0
Get size of file.
unsigned int u32
32 bit unsigned variable.
virtual const io::path & getFileName() const =0
Get name of file.
Base class of most objects of the Irrlicht Engine.
IReadFile * createReadFile(const io::path &fileName)
Internal function, please do not use.
virtual bool seek(long finalPos, bool relativeMovement=false)=0
Changes position in file.