Download this file

zlibut.h    22 lines (16 with data), 430 Bytes

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