|  | OGRE 14.3
    Object-Oriented Graphics Rendering Engine | 
Template version of cache based on static array. More...
#include <OgreDeflate.h>
| Public Member Functions | |
| StaticCache () | |
| Constructor. | |
| size_t | avail () const | 
| Returns number of bytes available for reading in cache after rewinding. | |
| size_t | cacheData (const void *buf, size_t count) | 
| Cache data pointed by 'buf'. | |
| void | clear () | 
| Clear the cache. | |
| bool | ff (size_t count) | 
| Step forward in cached stream by 'count' bytes. | |
| size_t | read (void *buf, size_t count) | 
| Read data from cache to 'buf' (maximum 'count' bytes). | |
| bool | rewind (size_t count) | 
| Step back in cached stream by 'count' bytes. | |
Template version of cache based on static array.
'cacheSize' defines size of cache in bytes.
| 
 | inline | 
Constructor.
| 
 | inline | 
Cache data pointed by 'buf'.
If 'count' is greater than cache size, we cache only last bytes. Returns number of bytes written to cache.
References avail().
| 
 | inline | 
Read data from cache to 'buf' (maximum 'count' bytes).
Returns number of bytes read from cache.
References avail().
| 
 | inline | 
Step back in cached stream by 'count' bytes.
Returns 'true' if cache contains resulting position.
References clear().
| 
 | inline | 
| 
 | inline | 
Returns number of bytes available for reading in cache after rewinding.
Referenced by cacheData(), ff(), and read().
| 
 | inline |