20#ifndef INCLUDED_TOOLS_ZCODEC_HXX
21#define INCLUDED_TOOLS_ZCODEC_HXX
26#include <rtl/string.hxx>
28#define ZCODEC_NO_COMPRESSION 0
29#define ZCODEC_DEFAULT_COMPRESSION 6
42 enum State { STATE_INIT, STATE_DECOMPRESS, STATE_COMPRESS };
62 void InitDecompress(
SvStream & inStream);
66 ZCodec(
size_t nInBufSize = 32768,
size_t nOutBufSize = 32768 );
73 static bool IsZCompressed(
SvStream& rIStm );
84 void SetCompressionMetadata(
const OString& sFilename,
85 sal_uInt32 nLastModifiedTime, sal_uInt32 nInBufCRC32 );
sal_uInt32 mnLastModifiedTime
sal_uInt32 mnUncompressedSize
std::unique_ptr< sal_uInt8[]> mpInBuf
std::unique_ptr< sal_uInt8[]> mpOutBuf
#define ZCODEC_DEFAULT_COMPRESSION