a b/src/utils/zlibut.h
1
#ifndef _ZLIBUT_H_INCLUDED_
2
#define _ZLIBUT_H_INCLUDED_
3
4
#include <sys/types.h>
5
6
class ZLibUtBuf {
7
public:
8
    ZLibUtBuf();
9
    ~ZLibUtBuf();
10
    char *getBuf() const;
11
    char *takeBuf();
12
    size_t getCnt();
13
14
    class Internal;
15
    Internal *m;
16
};
17
18
bool inflateToBuf(const void* inp, unsigned int inlen, ZLibUtBuf& buf);
19
bool deflateToBuf(const void* inp, unsigned int inlen, ZLibUtBuf& buf);
20
21
#endif /* _ZLIBUT_H_INCLUDED_ */