From 3f0f30442de297859cccc18f28db83b4e755d36f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 30 Jul 2009 17:05:47 +0000 Subject: 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. --- src/bzip2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bzip2.cpp') 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 ) break; } - return sTotalOut; + return nBytes; } bool Bu::BZip2::isOpen() -- cgit v1.2.3