18 #ifndef _DECAF_UTI_ZIP_DEFLATER_H_ 19 #define _DECAF_UTI_ZIP_DEFLATER_H_ 119 Deflater(
int level,
bool nowrap =
false );
146 void setInput(
const unsigned char* buffer,
int size,
int offset,
int length );
162 void setInput(
const std::vector<unsigned char>& buffer,
int offset,
int length );
173 void setInput(
const std::vector<unsigned char>& buffer );
194 void setDictionary(
const unsigned char* buffer,
int size,
int offset,
int length );
212 void setDictionary(
const std::vector<unsigned char>& buffer,
int offset,
int length );
225 void setDictionary(
const std::vector<unsigned char>& buffer );
236 void setStrategy(
int strategy );
247 void setLevel(
int level );
253 bool needsInput()
const;
264 bool finished()
const;
286 int deflate(
unsigned char* buffer,
int size,
int offset,
int length );
305 int deflate( std::vector<unsigned char>& buffer,
int offset,
int length );
319 int deflate( std::vector<unsigned char>& buffer );
326 long long getAdler()
const;
333 long long getBytesRead()
const;
340 long long getBytesWritten()
const;
static const int BEST_SPEED
Compression level for fastest compression.
Definition: Deflater.h:58
static const int DEFAULT_COMPRESSION
Default compression level.
Definition: Deflater.h:68
static const int HUFFMAN_ONLY
Compression strategy for Huffman coding only.
Definition: Deflater.h:90
static const int DEFAULT_STRATEGY
Default compression strategy.
Definition: Deflater.h:95
static const int FILTERED
Compression strategy best used for data consisting mostly of small values with a somewhat random dist...
Definition: Deflater.h:85
static const int NO_COMPRESSION
Compression level for no compression.
Definition: Deflater.h:78
This class compresses data using the DEFLATE algorithm (see specification).
Definition: Deflater.h:52
static const int DEFLATED
Compression method for the deflate algorithm (the only one currently supported).
Definition: Deflater.h:73
static const int BEST_COMPRESSION
Compression level for best compression.
Definition: Deflater.h:63
#define DECAF_API
Definition: Config.h:29
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25