diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-06-18 19:42:34 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-06-18 19:42:34 +0000 |
commit | 8b12972092777af56ae21f65b41f4c40d52c2367 (patch) | |
tree | 3ee45c4b69899acb0cdbd013ea8e6ea54bcdc023 /src/bzip2.cpp | |
parent | 5292e5831934dc719d1ac06332bd252abe4ac3bc (diff) | |
download | libbu++-8b12972092777af56ae21f65b41f4c40d52c2367.tar.gz libbu++-8b12972092777af56ae21f65b41f4c40d52c2367.tar.bz2 libbu++-8b12972092777af56ae21f65b41f4c40d52c2367.tar.xz libbu++-8b12972092777af56ae21f65b41f4c40d52c2367.zip |
Added the protocol class. servers work, but don't send data, updated the streams
to include many more state indicators and caps queries, and everything is
working better in general.
Diffstat (limited to 'src/bzip2.cpp')
-rw-r--r-- | src/bzip2.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bzip2.cpp b/src/bzip2.cpp index d3f237a..66786e4 100644 --- a/src/bzip2.cpp +++ b/src/bzip2.cpp | |||
@@ -128,7 +128,7 @@ size_t Bu::BZip2::read( void *pData, size_t nBytes ) | |||
128 | { | 128 | { |
129 | if( bzState.avail_in > 0 ) | 129 | if( bzState.avail_in > 0 ) |
130 | { | 130 | { |
131 | if( rNext.canSeek() ) | 131 | if( rNext.isSeekable() ) |
132 | { | 132 | { |
133 | rNext.seek( -bzState.avail_in ); | 133 | rNext.seek( -bzState.avail_in ); |
134 | } | 134 | } |
@@ -185,3 +185,8 @@ size_t Bu::BZip2::write( const void *pData, size_t nBytes ) | |||
185 | return sTotalOut; | 185 | return sTotalOut; |
186 | } | 186 | } |
187 | 187 | ||
188 | bool Bu::BZip2::isOpen() | ||
189 | { | ||
190 | return (bzState.state != NULL); | ||
191 | } | ||
192 | |||