aboutsummaryrefslogtreecommitdiff
path: root/src/bzip2.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-09-23 23:19:38 +0000
committerMike Buland <eichlan@xagasoft.com>2009-09-23 23:19:38 +0000
commit1b7caf3368675eb6825e0dca77782a141dfa0392 (patch)
tree01fb357534875c7a69199e4dd3f0c9d8810810e2 /src/bzip2.h
parent319a773dfcb187bc7e87ae6d64df3b6b6ec4831a (diff)
downloadlibbu++-1b7caf3368675eb6825e0dca77782a141dfa0392.tar.gz
libbu++-1b7caf3368675eb6825e0dca77782a141dfa0392.tar.bz2
libbu++-1b7caf3368675eb6825e0dca77782a141dfa0392.tar.xz
libbu++-1b7caf3368675eb6825e0dca77782a141dfa0392.zip
Wow, ok, file was broken on changing position in the stream, it wouldn't reset
the end of stream flag. Now it does reset it, and assumes that you've placed the position not at the end, if you have, it will detect it again immediately upon read. BZip2 now provides a method of getting the number of bytes written out, i.e. the compressed size of the output, I have to figure out the input side next...
Diffstat (limited to 'src/bzip2.h')
-rw-r--r--src/bzip2.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bzip2.h b/src/bzip2.h
index fd0ba5c..7ca61b4 100644
--- a/src/bzip2.h
+++ b/src/bzip2.h
@@ -32,6 +32,8 @@ namespace Bu
32 32
33 virtual bool isOpen(); 33 virtual bool isOpen();
34 34
35 size_t getCompressedSize();
36
35 private: 37 private:
36 void bzError( int code ); 38 void bzError( int code );
37 bz_stream bzState; 39 bz_stream bzState;
@@ -39,6 +41,7 @@ namespace Bu
39 int nCompression; 41 int nCompression;
40 char *pBuf; 42 char *pBuf;
41 uint32_t nBufSize; 43 uint32_t nBufSize;
44 size_t sTotalOut;
42 }; 45 };
43} 46}
44 47