/usr/include/dclib-0.3/dclib/core/czlib.h is in libdc-dev 0.3.24~svn3121-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | /***************************************************************************
czlib.h - description
-------------------
begin : Thu Oct 12 2004
copyright : (C) 2004 by Mathias Küster
email : mathen@users.berlios.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef CZLIB_H
#define CZLIB_H
/**
*@author Mathias Küster
*
* This is a wrapper for zlib.
*/
#include <dclib/dcos.h>
class CByteArray;
struct z_stream_s;
class CZLib {
public:
/** */
CZLib();
/** */
~CZLib();
/**
* inflate block
* -1 error
* 0 finished (stream end)
* 1 more data to process
*/
int InflateZBlock( const char * in, int * inlen, char * out, int * outlen );
/** */
unsigned long GetTotalOut() const;
/** Returns size of decompressed output , or zero on error */
static unsigned long OneShotInflate( const char * in, const unsigned long inlen, CByteArray * out );
private:
/** */
bool m_bInit;
/** */
struct z_stream_s * m_pZStream;
};
class CDeflater {
public:
/** Constructor */
CDeflater();
/** Destructor */
~CDeflater();
/**
* deflate block
* -1 error
* 0 finished (stream end)
* 1 more data to process
*/
int DeflateBlock( const char * in, int * inlen, char * out, int * outlen, bool more );
/** */
unsigned long GetTotalOut() const;
/** Returns size of compressed output, or zero on error */
static unsigned long OneShotDeflate( const char * in, const unsigned long inlen, CByteArray * out );
private:
/** */
bool m_bInit;
/** */
struct z_stream_s * m_pZStream;
};
#endif
|