File: zlibut.h

package info (click to toggle)
recoll 1.43.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 16,512 kB
  • sloc: cpp: 104,170; python: 9,500; xml: 7,248; ansic: 6,447; sh: 1,212; perl: 130; makefile: 72
file content (24 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _ZLIBUT_H_INCLUDED_
#define _ZLIBUT_H_INCLUDED_

#include <sys/types.h>

class ZLibUtBuf {
public:
    ZLibUtBuf();
    ~ZLibUtBuf();
    ZLibUtBuf(const ZLibUtBuf&) = delete;
    ZLibUtBuf& operator=(const ZLibUtBuf&) = delete;
    
    char *getBuf() const;
    char *takeBuf();
    size_t getCnt();

    class Internal;
    Internal *m;
};

bool inflateToBuf(const void* inp, size_t inlen, ZLibUtBuf& buf);
bool deflateToBuf(const void* inp, size_t inlen, ZLibUtBuf& buf);

#endif /* _ZLIBUT_H_INCLUDED_ */