mirror of
https://review.haiku-os.org/haiku
synced 2025-02-09 07:09:09 +01:00
36 lines
600 B
C++
36 lines
600 B
C++
/*
|
|
* Copyright 2009-2014, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _ZLIB_COMPRESSION_BASE_H_
|
|
#define _ZLIB_COMPRESSION_BASE_H_
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
class BDataIO;
|
|
|
|
|
|
class BZlibCompressionBase {
|
|
public:
|
|
BZlibCompressionBase(BDataIO* output);
|
|
~BZlibCompressionBase();
|
|
|
|
static status_t TranslateZlibError(int error);
|
|
|
|
protected:
|
|
struct ZStream;
|
|
|
|
protected:
|
|
status_t CreateStream();
|
|
void DeleteStream();
|
|
|
|
protected:
|
|
BDataIO* fOutput;
|
|
ZStream* fStream;
|
|
};
|
|
|
|
|
|
#endif // _ZLIB_COMPRESSION_BASE_H_
|