#include <compression.h>
Definition at line 98 of file compression.h.
zlib::ZlibCompressor::ZlibCompressor |
( |
const Algorithms & |
alg | ) |
|
|
explicit |
zlib::ZlibCompressor::~ZlibCompressor |
( |
| ) |
|
bool zlib::ZlibCompressor::Deflate |
( |
const bool |
flush, |
|
|
unsigned char ** |
inbuf, |
|
|
size_t * |
inbufsize, |
|
|
unsigned char ** |
outbuf, |
|
|
size_t * |
outbufsize |
|
) |
| |
|
virtual |
Deflate function. The arguments and returns closely match the input and output of the zlib deflate function. Input:
- outbuf - Output buffer to write the compressed data.
- outbufsize - Size of the output buffer
- inbuf - Input data to be compressed
- inbufsize - Size of the input buffer
- flush - Whether the compression stream should be flushed / finished Upon return: returns: true - if done compressing, false otherwise
- outbuf - output buffer pointer (unchanged from input)
- outbufsize - The number of bytes used in the outbuf
- inbuf - Pointer to the next byte of input to read in
- inbufsize - the remaining bytes of input to read in.
- flush - unchanged from input
Implements zlib::Compressor.
Definition at line 896 of file compression.cc.
size_t zlib::ZlibCompressor::DeflateBound |
( |
const size_t |
bytes | ) |
|
|
virtual |
Return an upper bound on the number of bytes required in order to compress an input number of bytes. Returns: Upper bound on the number of bytes required to compress.
Implements zlib::Compressor.
Definition at line 933 of file compression.cc.
z_stream zlib::ZlibCompressor::stream_ |
|
private |
The documentation for this class was generated from the following files:
- /home/sftnight/jenkins/workspace/CvmfsDoxygen/label/docker-x86_64/cvmfs/cvmfs/compression/compression.h
- /home/sftnight/jenkins/workspace/CvmfsDoxygen/label/docker-x86_64/cvmfs/cvmfs/compression/compression.cc