Assimp  v4.1. (December 2018)
Assimp::CIOStreamWrapper Class Reference

Inherits Assimp::IOStream.

Public Member Functions

 CIOStreamWrapper (aiFile *pFile, CIOSystemWrapper *io)
 
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...
 
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 (void) const
 Get the current position of the read/write cursor. More...
 
size_t Write (const void *pvBuffer, size_t pSize, size_t pCount)
 Write to the file. More...
 
 ~CIOStreamWrapper (void)
 
- Public Member Functions inherited from Assimp::IOStream
virtual ~IOStream ()
 Destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Assimp::IOStream
 IOStream (void)
 Constructor protected, use IOSystem::Open() to create an instance. More...
 

Constructor & Destructor Documentation

◆ CIOStreamWrapper()

Assimp::CIOStreamWrapper::CIOStreamWrapper ( aiFile pFile,
CIOSystemWrapper io 
)
inlineexplicit

◆ ~CIOStreamWrapper()

Assimp::CIOStreamWrapper::~CIOStreamWrapper ( void  )

Member Function Documentation

◆ FileSize()

size_t Assimp::CIOStreamWrapper::FileSize ( ) const
virtual

Returns filesize Returns the filesize.

Implements Assimp::IOStream.

◆ Flush()

void Assimp::CIOStreamWrapper::Flush ( )
virtual

Flush the contents of the file buffer (for writers) See fflush() for more details.

Implements Assimp::IOStream.

◆ Read()

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

Read from the file.

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

Implements Assimp::IOStream.

◆ Seek()

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

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()

size_t Assimp::CIOStreamWrapper::Tell ( void  ) const
virtual

Get the current position of the read/write cursor.

See ftell() for more details

Implements Assimp::IOStream.

◆ Write()

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

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 files: