Assimp
v4.1. (December 2018)
|
Implementation of a cached stream buffer. More...
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.
|
inline |
The class constructor.
|
inline |
The class destructor.
|
inline |
Returns the cache size.
|
inline |
Will close the cached access.
|
inline |
Returns the current block index.
|
inline |
Returns the current file pos.
|
inline |
Will read the next block.
buffer | The buffer for the next block. |
|
inline |
Will read the next line.
buffer | The buffer for the next line. |
|
inline |
Will read the next line ascii or binary end line char.
buffer | The buffer for the next line. |
|
inline |
Returns the number of blocks to read.
|
inline |
Will open the cached access for a given stream.
stream | The stream to cache. |
|
inline |
Will read the next block.
|
inline |
Returns the file-size.