Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
Implementation of IOStream to read directly from a memory buffer. More...
#include <MemoryIOWrapper.h>
Inherits Assimp::IOStream.
Public Member Functions | |
size_t | FileSize () const |
Returns filesize Returns the filesize. More... | |
void | Flush () |
Flush the contents of the file buffer (for writers) See fflush() for more details. More... | |
MemoryIOStream (const uint8_t *buff, size_t len, bool own=false) | |
size_t | Read (void *pvBuffer, size_t pSize, size_t pCount) |
Read from the file. More... | |
aiReturn | Seek (size_t pOffset, aiOrigin pOrigin) |
Set the read/write cursor of the file. More... | |
size_t | Tell () const |
Get the current position of the read/write cursor. More... | |
size_t | Write (const void *, size_t, size_t) |
Write to the file. More... | |
~MemoryIOStream () | |
![]() | |
virtual size_t | FileSize () const =0 |
Returns filesize Returns the filesize. More... | |
virtual void | Flush ()=0 |
Flush the contents of the file buffer (for writers) See fflush() for more details. More... | |
virtual size_t | Read (void *pvBuffer, size_t pSize, size_t pCount)=0 |
Read from the file. More... | |
virtual aiReturn | Seek (size_t pOffset, aiOrigin pOrigin)=0 |
Set the read/write cursor of the file. More... | |
virtual size_t | Tell () const =0 |
Get the current position of the read/write cursor. More... | |
virtual size_t | Write (const void *pvBuffer, size_t pSize, size_t pCount)=0 |
Write to the file. More... | |
virtual | ~IOStream () |
Destructor. More... | |
Additional Inherited Members | |
![]() | |
IOStream () AI_NO_EXCEPT | |
Constructor protected, use IOSystem::Open() to create an instance. More... | |
Implementation of IOStream to read directly from a memory buffer.
|
inline |
|
inline |
|
inlinevirtual |
Returns filesize Returns the filesize.
Implements Assimp::IOStream.
|
inlinevirtual |
Flush the contents of the file buffer (for writers) See fflush() for more details.
Implements Assimp::IOStream.
|
inlinevirtual |
Read from the file.
See fread() for more details This fails for write-only files
Implements Assimp::IOStream.
Set the read/write cursor of the file.
Note that the offset is negative for aiOrigin_END. See fseek() for more details
Implements Assimp::IOStream.
|
inlinevirtual |
Get the current position of the read/write cursor.
See ftell() for more details
Implements Assimp::IOStream.
|
inlinevirtual |
Write to the file.
See fwrite() for more details This fails for read-only files
Implements Assimp::IOStream.