X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2FCompress%2FIO%2FBase%2Flib%2FIO%2FCompress%2FBase.pm;h=14363bce67ca78ea8f84024f64c55e7b6d04c1e1;hb=2b4e0969009806e4e03a23b007570fa5279be8e0;hp=19669e2ada4901450e0201df35a56a36edde31c4;hpb=25f0751fb55a0f87a7e18ae8960f9acf2407ae32;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/Compress/IO/Base/lib/IO/Compress/Base.pm b/ext/Compress/IO/Base/lib/IO/Compress/Base.pm index 19669e2..14363bc 100644 --- a/ext/Compress/IO/Base/lib/IO/Compress/Base.pm +++ b/ext/Compress/IO/Base/lib/IO/Compress/Base.pm @@ -20,7 +20,7 @@ use bytes; our (@ISA, $VERSION, $got_encode); #@ISA = qw(Exporter IO::File); -$VERSION = '2.000_08'; +$VERSION = '2.000_11'; #Can't locate object method "SWASHNEW" via package "utf8" (perhaps you forgot to load "utf8"?) at .../ext/Compress-Zlib/Gzip/blib/lib/Compress/Zlib/Common.pm line 16. @@ -548,6 +548,10 @@ sub DESTROY +sub filterUncompressed +{ +} + sub syswrite { my $self = shift ; @@ -596,6 +600,8 @@ sub syswrite *$self->{UnCompSize_32bit} += $buffer_length ; } + $self->filterUncompressed($buffer); + # if (*$self->{Encoding}) { # $$buffer = *$self->{Encoding}->encode($$buffer); # } @@ -695,7 +701,8 @@ sub newStream ${ *$self->{Buffer} } = '' ; } - my $status = *$self->{Compress}->reset() ; + #my $status = *$self->{Compress}->reset() ; + my $status = $self->reset() ; return $self->saveErrorString(0, *$self->{Compress}{Error}, *$self->{Compress}{ErrorNo}) if $status == STATUS_ERROR; @@ -706,6 +713,12 @@ sub newStream return 1 ; } +sub reset +{ + my $self = shift ; + return *$self->{Compress}->reset() ; +} + sub _writeTrailer { my $self = shift ; @@ -968,13 +981,9 @@ L - - - =head1 AUTHOR -The I module was written by Paul Marquess, -F. +This module was written by Paul Marquess, F. @@ -983,7 +992,6 @@ F. See the Changes file. =head1 COPYRIGHT AND LICENSE - Copyright (c) 2005-2006 Paul Marquess. All rights reserved.