Utility class to make IrrXML work together with our custom IO system See the IrrXML docs for more details.
More...
Inherits irr::io::IFileReadCallBack.
Utility class to make IrrXML work together with our custom IO system See the IrrXML docs for more details.
Construct IrrXML-Reader in BaseImporter::InternReadFile():
std::unique_ptr<IOStream> file( pIOHandler->Open( pFile));
if( file.get() == NULL) {
}
mReader = irr::io::createIrrXMLReader( mIOWrapper.get());
if( !mReader) {
ThrowException( "xxxx: Unable to open file.");
}
CIrrXML_IOStreamReader(IOStream *_stream)
Construction from an existing IOStream.
Definition: irrXMLWrapper.h:83
FOR IMPORTER PLUGINS ONLY: Simple exception class to be thrown if an unrecoverable error occurs while...
Definition: Exceptional.h:84
◆ CIrrXML_IOStreamReader()
Assimp::CIrrXML_IOStreamReader::CIrrXML_IOStreamReader |
( |
IOStream * |
_stream | ) |
|
|
inlineexplicit |
◆ ~CIrrXML_IOStreamReader()
virtual Assimp::CIrrXML_IOStreamReader::~CIrrXML_IOStreamReader |
( |
| ) |
|
|
inlinevirtual |
◆ getSize()
virtual int Assimp::CIrrXML_IOStreamReader::getSize |
( |
| ) |
|
|
inlinevirtual |
Returns size of file in bytes.
◆ read()
virtual int Assimp::CIrrXML_IOStreamReader::read |
( |
void * |
buffer, |
|
|
int |
sizeToRead |
|
) |
| |
|
inlinevirtual |
Reads an amount of bytes from the file.
- Parameters
-
buffer | Pointer to output buffer. |
sizeToRead | Amount of bytes to read |
- Returns
- Returns how much bytes were read.
The documentation for this class was generated from the following file: