Add IMemoryReadFile interface which allows direct access to memory block used as file.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5799 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
0408c9eb52
commit
c87c63f31e
|
@ -1,5 +1,6 @@
|
|||
--------------------------
|
||||
Changes in 1.9 (not yet released)
|
||||
- Add IMemoryReadFile interface which allows direct access to memory block used as file.
|
||||
- Add IReadFile::getType() interface to all users to find out what kind of class implements that interface.
|
||||
- .dae/Collada reader/writer now handle whitespace in texture-filenames with escape characters (handle them as xs:anyURI).
|
||||
- Add function string::insert.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#ifndef __C_MEMORY_READ_FILE_H_INCLUDED__
|
||||
#define __C_MEMORY_READ_FILE_H_INCLUDED__
|
||||
|
||||
#include "IReadFile.h"
|
||||
#include "IMemoryReadFile.h"
|
||||
#include "IWriteFile.h"
|
||||
#include "irrString.h"
|
||||
|
||||
|
@ -18,7 +18,7 @@ namespace io
|
|||
/*!
|
||||
Class for reading from memory.
|
||||
*/
|
||||
class CMemoryReadFile : public IReadFile
|
||||
class CMemoryReadFile : public IMemoryReadFile
|
||||
{
|
||||
public:
|
||||
|
||||
|
@ -49,6 +49,12 @@ namespace io
|
|||
return ERFT_MEMORY_READ_FILE;
|
||||
}
|
||||
|
||||
//! Get direct access to internal buffer
|
||||
virtual const void *getBuffer() const _IRR_OVERRIDE_
|
||||
{
|
||||
return Buffer;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
const void *Buffer;
|
||||
|
|
Loading…
Reference in New Issue