xoreos  0.0.5
Namespaces | Functions
deflate.cpp File Reference

Compress (deflate) and decompress (inflate) using zlib's DEFLATE algorithm. More...

#include <zlib.h>
#include <boost/scope_exit.hpp>
#include "src/common/deflate.h"
#include "src/common/error.h"
#include "src/common/scopedptr.h"
#include "src/common/ptrvector.h"
#include "src/common/memreadstream.h"
Include dependency graph for deflate.cpp:

Go to the source code of this file.

Namespaces

 Common
 

Functions

static void Common::setZStreamInput (z_stream &strm, size_t size, const byte *data)
 
static void Common::initZStream (z_stream &strm, int windowBits, size_t size, const byte *data)
 
byteCommon::decompressDeflate (const byte *data, size_t inputSize, size_t outputSize, int windowBits)
 Decompress (inflate) using zlib's DEFLATE algorithm. More...
 
byteCommon::decompressDeflateWithoutOutputSize (const byte *data, size_t inputSize, size_t &outputSize, int windowBits, unsigned int frameSize=4096)
 Decompress (inflate) using zlib's DEFLATE algorithm without knowing the output size. More...
 
SeekableReadStream * Common::decompressDeflate (ReadStream &input, size_t inputSize, size_t outputSize, int windowBits)
 Decompress (inflate) using zlib's DEFLATE algorithm. More...
 
SeekableReadStream * Common::decompressDeflateWithoutOutputSize (ReadStream &input, size_t inputSize, int windowBits, unsigned int frameSize=4096)
 Decompress (inflate) using zlib's DEFLATE algorithm without knowing the output size. More...
 
size_t Common::decompressDeflateChunk (SeekableReadStream &input, int windowBits, byte *output, size_t outputSize, unsigned int frameSize=4096)
 Decompress (inflate) using zlib's DEFLATE algorithm, until a stream end marker was reached. More...
 

Detailed Description

Compress (deflate) and decompress (inflate) using zlib's DEFLATE algorithm.

Definition in file deflate.cpp.