|
Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
Redirect IOStream to a blob. More...
#include <BlobIOSystem.h>
Inherits Assimp::IOStream.
Public Member Functions | |
| BlobIOStream (BlobIOSystem *creator, const std::string &file, size_t initial=4096) | |
| The class constructor with all needed parameters. | |
| size_t | FileSize () const override |
| Returns filesize Returns the filesize. | |
| void | Flush () override |
| Flush the contents of the file buffer (for writers) See fflush() for more details. | |
| aiExportDataBlob * | GetBlob () |
| size_t | Read (void *, size_t, size_t) override |
| Read from the file. | |
| aiReturn | Seek (size_t pOffset, aiOrigin pOrigin) override |
| Set the read/write cursor of the file. | |
| size_t | Tell () const override |
| Get the current position of the read/write cursor. | |
| size_t | Write (const void *pvBuffer, size_t pSize, size_t pCount) override |
| Write to the file. | |
| ~BlobIOStream () override | |
| The class destructor. | |
Public Member Functions inherited from Assimp::IOStream | |
| virtual | ~IOStream ()=default |
| Destructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from Assimp::IOStream | |
| IOStream () AI_NO_EXCEPT=default | |
| Constructor protected, use IOSystem::Open() to create an instance. | |
Redirect IOStream to a blob.
|
inline |
The class constructor with all needed parameters.
| creator | Pointer to the creator instance |
| file | The filename |
| initial | The initial size |
|
override |
The class destructor.
|
inlineoverridevirtual |
Returns filesize Returns the filesize.
Implements Assimp::IOStream.
|
inlineoverridevirtual |
Flush the contents of the file buffer (for writers) See fflush() for more details.
Implements Assimp::IOStream.
|
inline |
|
inlineoverridevirtual |
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.
|
inlineoverridevirtual |
Get the current position of the read/write cursor.
See ftell() for more details
Implements Assimp::IOStream.
|
inlineoverridevirtual |
Write to the file.
See fwrite() for more details This fails for read-only files
Implements Assimp::IOStream.