summaryrefslogtreecommitdiff
path: root/src/stable/bzip2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stable/bzip2.h')
-rw-r--r--src/stable/bzip2.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/stable/bzip2.h b/src/stable/bzip2.h
index d92dd2f..d53f325 100644
--- a/src/stable/bzip2.h
+++ b/src/stable/bzip2.h
@@ -14,36 +14,36 @@
14 14
15namespace Bu 15namespace Bu
16{ 16{
17 /** 17 /**
18 * Provides BZip2 type compression and decompression. 18 * Provides BZip2 type compression and decompression.
19 * 19 *
20 *@ingroup Streams 20 *@ingroup Streams
21 *@ingroup Compression 21 *@ingroup Compression
22 */ 22 */
23 class BZip2 : public Bu::Filter 23 class BZip2 : public Bu::Filter
24 { 24 {
25 public: 25 public:
26 BZip2( Bu::Stream &rNext, int nCompression=9 ); 26 BZip2( Bu::Stream &rNext, int nCompression=9 );
27 virtual ~BZip2(); 27 virtual ~BZip2();
28 28
29 virtual void start(); 29 virtual void start();
30 virtual Bu::size stop(); 30 virtual Bu::size stop();
31 virtual Bu::size read( void *pBuf, Bu::size nBytes ); 31 virtual Bu::size read( void *pBuf, Bu::size nBytes );
32 virtual Bu::size write( const void *pBuf, Bu::size nBytes ); 32 virtual Bu::size write( const void *pBuf, Bu::size nBytes );
33 33
34 virtual bool isOpen(); 34 virtual bool isOpen();
35 35
36 Bu::size getCompressedSize(); 36 Bu::size getCompressedSize();
37 37
38 private: 38 private:
39 void bzError( int code ); 39 void bzError( int code );
40 void *prState; 40 void *prState;
41 bool bReading; 41 bool bReading;
42 int nCompression; 42 int nCompression;
43 char *pBuf; 43 char *pBuf;
44 uint32_t nBufSize; 44 uint32_t nBufSize;
45 Bu::size sTotalOut; 45 Bu::size sTotalOut;
46 }; 46 };
47} 47}
48 48
49#endif 49#endif