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;