diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-07-30 17:05:47 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-07-30 17:05:47 +0000 |
commit | 3f0f30442de297859cccc18f28db83b4e755d36f (patch) | |
tree | 6e9fdd9ff6febcdd87779f7663fecc0388e0dd73 /src/bzip2.cpp | |
parent | 8551cdd3bbf66d8b7b0fea8aa1e0fbddd86bca47 (diff) | |
download | libbu++-3f0f30442de297859cccc18f28db83b4e755d36f.tar.gz libbu++-3f0f30442de297859cccc18f28db83b4e755d36f.tar.bz2 libbu++-3f0f30442de297859cccc18f28db83b4e755d36f.tar.xz libbu++-3f0f30442de297859cccc18f28db83b4e755d36f.zip |
Bu::Buffer actually works, and works really well. I dig it. Bu::BZip2 now
follows the new filter guidelines, where read and write report the amount of
data consumed, not the amount processed. I.e. when writing, it reports how
much of your incoming data it used, not how many bytes it wrote on the other
end.
Diffstat (limited to 'src/bzip2.cpp')
-rw-r--r-- | src/bzip2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bzip2.cpp b/src/bzip2.cpp index 10cfe8a..0a56f83 100644 --- a/src/bzip2.cpp +++ b/src/bzip2.cpp | |||
@@ -200,7 +200,7 @@ size_t Bu::BZip2::write( const void *pData, size_t nBytes ) | |||
200 | break; | 200 | break; |
201 | } | 201 | } |
202 | 202 | ||
203 | return sTotalOut; | 203 | return nBytes; |
204 | } | 204 | } |
205 | 205 | ||
206 | bool Bu::BZip2::isOpen() | 206 | bool Bu::BZip2::isOpen() |