5 #ifndef __I_READ_FILE_H_INCLUDED__ 6 #define __I_READ_FILE_H_INCLUDED__ 25 virtual size_t read(
void*
buffer,
size_t sizeToRead) = 0;
33 virtual bool seek(
long finalPos,
bool relativeMovement =
false) = 0;
37 virtual long getSize()
const = 0;
41 virtual long getPos()
const = 0;
Interface providing read access to a file.
virtual long getPos() const =0
Get the current position in 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.
virtual long getSize() const =0
Get size of file.
virtual EREAD_FILE_TYPE getType() const
Get the type of the class implementing this interface.
virtual const io::path & getFileName() const =0
Get name of file.
virtual size_t read(void *buffer, size_t sizeToRead)=0
Reads an amount of bytes from the file.
Base class of most objects of the Irrlicht Engine.
EREAD_FILE_TYPE
An enumeration for different class types implementing IReadFile.
virtual bool seek(long finalPos, bool relativeMovement=false)=0
Changes position in file.