Crazy Eddies GUI System  0.7.2
Public Member Functions | Protected Attributes | List of all members
CEGUI::IrrlichtMemoryFile Class Reference

Class to wrap a file access interface around a memory buffer to enable us to pass data that has been loaded via the CEGUI::ResourceProvider to irrlicht, via it's IReadFile based interfaces. More...

+ Inheritance diagram for CEGUI::IrrlichtMemoryFile:
+ Collaboration diagram for CEGUI::IrrlichtMemoryFile:

Public Member Functions

 IrrlichtMemoryFile (const String &filename, const unsigned char *memory, uint32 size)
 
irr::s32 read (void *buffer, irr::u32 sizeToRead)
 
long getSize () const
 
long getPos () const
 
bool seek (long finalPos, bool relativeMovement=false)
 
const irr::c8 * getFileName () const
 

Protected Attributes

String d_filename
 
const unsigned char * d_buffer
 
uint32 d_size
 
uint32 d_position
 

Detailed Description

Class to wrap a file access interface around a memory buffer to enable us to pass data that has been loaded via the CEGUI::ResourceProvider to irrlicht, via it's IReadFile based interfaces.