28 #ifndef __OGRE_DEFLATE_H__ 29 #define __OGRE_DEFLATE_H__ 78 size_t getAvailInForSinglePass();
112 size_t read(
void* buf,
size_t count);
116 size_t write(
const void* buf,
size_t count);
120 void skip(
long count);
124 void seek(
size_t pos );
128 size_t tell(
void)
const;
132 bool eof(
void)
const;
DataStreamPtr mCompressedStream
bool mIsCompressedValid
Whether the underlying stream is valid compressed data.
General purpose class used for encapsulating the reading and writing of data.
bool isCompressedStreamValid() const
Returns whether the compressed stream is valid deflated data.
StaticCache< 16 *OGRE_STREAM_TEMP_SIZE > mReadCache
Cache for read data in case skipping around.
unsigned char * mTmp
Intermediate buffer for read / write.
Stream which compresses / uncompresses data using the 'deflate' compression algorithm.
struct z_stream_s z_stream
DataStreamPtr mTmpWriteStream