summaryrefslogtreecommitdiff
path: root/src/bzip2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bzip2.cpp')
-rw-r--r--src/bzip2.cpp7
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
188bool Bu::BZip2::isOpen()
189{
190 return (bzState.state != NULL);
191}
192