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. | |
bool | close () |
Will close the cached access. | |
size_t | getCurrentBlockIndex () const |
Returns the current block index. | |
size_t | getFilePos () const |
Returns the current file pos. | |
bool | getNextBlock (std::vector< T > &buffer) |
Will read the next block. | |
bool | getNextDataLine (std::vector< T > &buffer, T continuationToken) |
Will read the next line. | |
bool | getNextLine (std::vector< T > &buffer) |
Will read the next line ascii or binary end line char. | |
size_t | getNumBlocks () const |
Returns the number of blocks to read. | |
IOStreamBuffer (size_t cache=4096 *4096) | |
The class constructor. | |
bool | open (IOStream *stream) |
Will open the cached access for a given stream. | |
bool | readNextBlock () |
Will read the next block. | |
size_t | size () const |
Returns the file-size. | |
~IOStreamBuffer ()=default | |
The class destructor. | |
Implementation of a cached stream buffer.
AI_FORCE_INLINE Assimp::IOStreamBuffer< T >::IOStreamBuffer | ( | size_t | cache = 4096 * 4096 | ) |
The class constructor.
|
default |
The class destructor.
AI_FORCE_INLINE size_t Assimp::IOStreamBuffer< T >::cacheSize | ( | ) | const |
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 | ( | ) | const |
Returns the current block index.
AI_FORCE_INLINE size_t Assimp::IOStreamBuffer< T >::getFilePos | ( | ) | const |
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 | ( | ) | const |
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 | ( | ) | const |
Returns the file-size.