Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
Implementation of a cached stream buffer. More...
#include <IOStreamBuffer.h>
Public Member Functions | |
size_t | cacheSize () const |
Returns the cache size. More... | |
bool | close () |
Will close the cached access. More... | |
size_t | getCurrentBlockIndex () const |
Returns the current block index. More... | |
size_t | getFilePos () const |
Returns the current file pos. More... | |
bool | getNextBlock (std::vector< T > &buffer) |
Will read the next block. More... | |
bool | getNextDataLine (std::vector< T > &buffer, T continuationToken) |
Will read the next line. More... | |
bool | getNextLine (std::vector< T > &buffer) |
Will read the next line ascii or binary end line char. More... | |
size_t | getNumBlocks () const |
Returns the number of blocks to read. More... | |
IOStreamBuffer (size_t cache=4096 *4096) | |
The class constructor. More... | |
bool | open (IOStream *stream) |
Will open the cached access for a given stream. More... | |
bool | readNextBlock () |
Will read the next block. More... | |
size_t | size () const |
Returns the file-size. More... | |
~IOStreamBuffer () | |
The class destructor. More... | |
Implementation of a cached stream buffer.
AI_FORCE_INLINE Assimp::IOStreamBuffer< T >::IOStreamBuffer | ( | size_t | cache = 4096 * 4096 | ) |
The class constructor.
AI_FORCE_INLINE Assimp::IOStreamBuffer< T >::~IOStreamBuffer |
The class destructor.
AI_FORCE_INLINE size_t Assimp::IOStreamBuffer< T >::cacheSize |
Returns the cache size.
AI_FORCE_INLINE bool Assimp::IOStreamBuffer< T >::close |
Will close the cached access.
AI_FORCE_INLINE size_t Assimp::IOStreamBuffer< T >::getCurrentBlockIndex |
Returns the current block index.
AI_FORCE_INLINE size_t Assimp::IOStreamBuffer< T >::getFilePos |
Returns the current file pos.
AI_FORCE_INLINE bool Assimp::IOStreamBuffer< T >::getNextBlock | ( | std::vector< T > & | buffer | ) |
Will read the next block.
buffer | The buffer for the next block. |
AI_FORCE_INLINE bool Assimp::IOStreamBuffer< T >::getNextDataLine | ( | std::vector< T > & | buffer, |
T | continuationToken | ||
) |
Will read the next line.
buffer | The buffer for the next line. |
AI_FORCE_INLINE bool Assimp::IOStreamBuffer< T >::getNextLine | ( | std::vector< T > & | buffer | ) |
Will read the next line ascii or binary end line char.
buffer | The buffer for the next line. |
AI_FORCE_INLINE size_t Assimp::IOStreamBuffer< T >::getNumBlocks |
Returns the number of blocks to read.
AI_FORCE_INLINE bool Assimp::IOStreamBuffer< T >::open | ( | IOStream * | stream | ) |
Will open the cached access for a given stream.
stream | The stream to cache. |
AI_FORCE_INLINE bool Assimp::IOStreamBuffer< T >::readNextBlock |
Will read the next block.
AI_FORCE_INLINE size_t Assimp::IOStreamBuffer< T >::size |
Returns the file-size.