arsa  2.7
Public Member Functions | List of all members
irr::io::IMemoryReadFile Class Referenceabstract

Interface providing read access to a memory read file. More...

#include <IMemoryReadFile.h>

Inheritance diagram for irr::io::IMemoryReadFile:
irr::io::IReadFile irr::IReferenceCounted

Public Member Functions

virtual const voidgetBuffer () const =0
 Get direct access to internal buffer of memory block used as file. More...
 
- Public Member Functions inherited from irr::io::IReadFile
virtual size_t read (void *buffer, size_t sizeToRead)=0
 Reads an amount of bytes from the file. More...
 
virtual bool seek (long finalPos, bool relativeMovement=false)=0
 Changes position in file. More...
 
virtual long getSize () const =0
 Get size of file. More...
 
virtual long getPos () const =0
 Get the current position in the file. More...
 
virtual const io::pathgetFileName () const =0
 Get name of file. More...
 
virtual EREAD_FILE_TYPE getType () const
 Get the type of the class implementing this interface. More...
 
- Public Member Functions inherited from irr::IReferenceCounted
 IReferenceCounted ()
 Constructor. More...
 
virtual ~IReferenceCounted ()
 Destructor. More...
 
void grab () const
 Grabs the object. Increments the reference counter by one. More...
 
bool drop () const
 Drops the object. Decrements the reference counter by one. More...
 
s32 getReferenceCount () const
 Get the reference count. More...
 
const c8getDebugName () const
 Returns the debug name of the object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from irr::IReferenceCounted
void setDebugName (const c8 *newName)
 Sets the debug name of the object. More...
 

Detailed Description

Interface providing read access to a memory read file.

Definition at line 16 of file IMemoryReadFile.h.

Member Function Documentation

◆ getBuffer()

virtual const void* irr::io::IMemoryReadFile::getBuffer ( ) const
pure virtual

Get direct access to internal buffer of memory block used as file.

It's usually better to use the IReadFile functions to access the file content. But as that buffer exist over the full life-time of a CMemoryReadFile, it's sometimes nice to avoid the additional data-copy which read() needs.


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