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/lzma.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 '')
-rw-r--r-- | src/stable/lzma.h | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/src/stable/lzma.h b/src/stable/lzma.h index 7118a6b..40963cc 100644 --- a/src/stable/lzma.h +++ b/src/stable/lzma.h | |||
@@ -14,46 +14,46 @@ | |||
14 | 14 | ||
15 | namespace Bu | 15 | namespace Bu |
16 | { | 16 | { |
17 | /** | 17 | /** |
18 | * Provides XZ compression and decompression, both LZMA1 (LzmaAlone) as | 18 | * Provides XZ compression and decompression, both LZMA1 (LzmaAlone) as |
19 | * well as the newer LZMA2 (xz) format. This uses .xz by default. | 19 | * well as the newer LZMA2 (xz) format. This uses .xz by default. |
20 | * | 20 | * |
21 | *@ingroup Streams | 21 | *@ingroup Streams |
22 | *@ingroup Compression | 22 | *@ingroup Compression |
23 | */ | 23 | */ |
24 | class Lzma : public Bu::Filter | 24 | class Lzma : public Bu::Filter |
25 | { | 25 | { |
26 | public: | 26 | public: |
27 | enum Format | 27 | enum Format |
28 | { | 28 | { |
29 | Xz = 0x01, | 29 | Xz = 0x01, |
30 | LzmaAlone = 0x02, | 30 | LzmaAlone = 0x02, |
31 | }; | 31 | }; |
32 | 32 | ||
33 | Lzma( Bu::Stream &rNext, int nCompression=6, Format eFmt=Xz ); | 33 | Lzma( Bu::Stream &rNext, int nCompression=6, Format eFmt=Xz ); |
34 | virtual ~Lzma(); | 34 | virtual ~Lzma(); |
35 | 35 | ||
36 | virtual void start(); | 36 | virtual void start(); |
37 | virtual Bu::size stop(); | 37 | virtual Bu::size stop(); |
38 | virtual Bu::size read( void *pBuf, Bu::size nBytes ); | 38 | virtual Bu::size read( void *pBuf, Bu::size nBytes ); |
39 | virtual Bu::size write( const void *pBuf, Bu::size nBytes ); | 39 | virtual Bu::size write( const void *pBuf, Bu::size nBytes ); |
40 | 40 | ||
41 | virtual bool isOpen(); | 41 | virtual bool isOpen(); |
42 | virtual bool isEos(); | 42 | virtual bool isEos(); |
43 | 43 | ||
44 | Bu::size getCompressedSize(); | 44 | Bu::size getCompressedSize(); |
45 | 45 | ||
46 | private: | 46 | private: |
47 | void lzmaError( int code ); | 47 | void lzmaError( int code ); |
48 | void *prState; | 48 | void *prState; |
49 | bool bReading; | 49 | bool bReading; |
50 | int nCompression; | 50 | int nCompression; |
51 | char *pBuf; | 51 | char *pBuf; |
52 | uint32_t nBufSize; | 52 | uint32_t nBufSize; |
53 | Bu::size sTotalOut; | 53 | Bu::size sTotalOut; |
54 | Format eFmt; | 54 | Format eFmt; |
55 | bool bEos; | 55 | bool bEos; |
56 | }; | 56 | }; |
57 | } | 57 | } |
58 | 58 | ||
59 | #endif | 59 | #endif |