Path Tracer
Public Member Functions | List of all members
Assimp::BlobIOStream Class Reference

#include <BlobIOSystem.h>

Inheritance diagram for Assimp::BlobIOStream:
Assimp::IOStream

Public Member Functions

 BlobIOStream (BlobIOSystem *creator, const std::string &file, size_t initial=4096)
 
aiExportDataBlobGetBlob ()
 
virtual size_t Read (void *, size_t, size_t)
 Read from the file. More...
 
virtual size_t Write (const void *pvBuffer, size_t pSize, size_t pCount)
 Write to the file. More...
 
virtual aiReturn Seek (size_t pOffset, aiOrigin pOrigin)
 Set the read/write cursor of the file. More...
 
virtual size_t Tell () const
 Get the current position of the read/write cursor. More...
 
virtual size_t FileSize () const
 Returns filesize Returns the filesize.
 
virtual void Flush ()
 Flush the contents of the file buffer (for writers) See fflush() for more details.
 
- Public Member Functions inherited from Assimp::IOStream
virtual ~IOStream ()
 Destructor. Deleting the object closes the underlying file, alternatively you may use IOSystem::Close() to release the file.
 

Additional Inherited Members

- Protected Member Functions inherited from Assimp::IOStream
 IOStream () AI_NO_EXCEPT
 class IOStream More...
 

Detailed Description

Redirect IOStream to a blob

Member Function Documentation

◆ Read()

virtual size_t Assimp::BlobIOStream::Read ( void *  pvBuffer,
size_t  pSize,
size_t  pCount 
)
inlinevirtual

Read from the file.

See fread() for more details This fails for write-only files

Implements Assimp::IOStream.

◆ Seek()

virtual aiReturn Assimp::BlobIOStream::Seek ( size_t  pOffset,
aiOrigin  pOrigin 
)
inlinevirtual

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.

◆ Tell()

virtual size_t Assimp::BlobIOStream::Tell ( ) const
inlinevirtual

Get the current position of the read/write cursor.

See ftell() for more details

Implements Assimp::IOStream.

◆ Write()

virtual size_t Assimp::BlobIOStream::Write ( const void *  pvBuffer,
size_t  pSize,
size_t  pCount 
)
inlinevirtual

Write to the file.

See fwrite() for more details This fails for read-only files

Implements Assimp::IOStream.


The documentation for this class was generated from the following file: