diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
commit | ec05778d5718a7912e506764d443a78d6a6179e3 (patch) | |
tree | 78a9a01532180030c095acefc45763f07c14edb8 /src/stable/bzip2.h | |
parent | b20414ac1fe80a71a90601f4cd1767fa7014a9ba (diff) | |
download | libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.gz libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.bz2 libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.xz libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.zip |
Converted tabs to spaces with tabconv.
Diffstat (limited to 'src/stable/bzip2.h')
-rw-r--r-- | src/stable/bzip2.h | 60 |
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 | ||
15 | namespace Bu | 15 | namespace 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 |