28 #ifndef __OGRE_DEFLATE_H__ 29 #define __OGRE_DEFLATE_H__ 31 #if OGRE_NO_ZIP_ARCHIVE == 0 80 size_t getAvailInForSinglePass();
100 size_t avail_in = 0);
114 size_t read(
void* buf,
size_t count);
118 size_t write(
const void* buf,
size_t count);
122 void skip(
long count);
126 void seek(
size_t pos );
130 size_t tell(
void)
const;
134 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