| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package IO::Compress::Deflate ; | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | require 5.006 ; | 
| 4 |  |  |  |  |  |  |  | 
| 5 | 16 |  |  | 16 |  | 49305 | use strict ; | 
|  | 16 |  |  |  |  | 91 |  | 
|  | 16 |  |  |  |  | 482 |  | 
| 6 | 16 |  |  | 16 |  | 84 | use warnings; | 
|  | 16 |  |  |  |  | 50 |  | 
|  | 16 |  |  |  |  | 452 |  | 
| 7 | 16 |  |  | 16 |  | 5755 | use bytes; | 
|  | 16 |  |  |  |  | 156 |  | 
|  | 16 |  |  |  |  | 94 |  | 
| 8 |  |  |  |  |  |  |  | 
| 9 |  |  |  |  |  |  | require Exporter ; | 
| 10 |  |  |  |  |  |  |  | 
| 11 | 16 |  |  | 16 |  | 7339 | use IO::Compress::RawDeflate 2.205 (); | 
|  | 16 |  |  |  |  | 397 |  | 
|  | 16 |  |  |  |  | 616 |  | 
| 12 | 16 |  |  | 16 |  | 104 | use IO::Compress::Adapter::Deflate 2.205 ; | 
|  | 16 |  |  |  |  | 244 |  | 
|  | 16 |  |  |  |  | 3026 |  | 
| 13 |  |  |  |  |  |  |  | 
| 14 | 16 |  |  | 16 |  | 5276 | use IO::Compress::Zlib::Constants 2.205 ; | 
|  | 16 |  |  |  |  | 281 |  | 
|  | 16 |  |  |  |  | 1620 |  | 
| 15 | 16 |  |  | 16 |  | 105 | use IO::Compress::Base::Common  2.205 qw(); | 
|  | 16 |  |  |  |  | 303 |  | 
|  | 16 |  |  |  |  | 6634 |  | 
| 16 |  |  |  |  |  |  |  | 
| 17 |  |  |  |  |  |  |  | 
| 18 |  |  |  |  |  |  | our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS, %DEFLATE_CONSTANTS, $DeflateError); | 
| 19 |  |  |  |  |  |  |  | 
| 20 |  |  |  |  |  |  | $VERSION = '2.205'; | 
| 21 |  |  |  |  |  |  | $DeflateError = ''; | 
| 22 |  |  |  |  |  |  |  | 
| 23 |  |  |  |  |  |  | @ISA    = qw(IO::Compress::RawDeflate Exporter); | 
| 24 |  |  |  |  |  |  | @EXPORT_OK = qw( $DeflateError deflate ) ; | 
| 25 |  |  |  |  |  |  | %EXPORT_TAGS = %IO::Compress::RawDeflate::DEFLATE_CONSTANTS ; | 
| 26 |  |  |  |  |  |  |  | 
| 27 |  |  |  |  |  |  | push @{ $EXPORT_TAGS{all} }, @EXPORT_OK ; | 
| 28 |  |  |  |  |  |  | Exporter::export_ok_tags('all'); | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | sub new | 
| 32 |  |  |  |  |  |  | { | 
| 33 | 172 |  |  | 172 | 1 | 196606 | my $class = shift ; | 
| 34 |  |  |  |  |  |  |  | 
| 35 | 172 |  |  |  |  | 652 | my $obj = IO::Compress::Base::Common::createSelfTiedObject($class, \$DeflateError); | 
| 36 | 172 |  |  |  |  | 740 | return $obj->_create(undef, @_); | 
| 37 |  |  |  |  |  |  | } | 
| 38 |  |  |  |  |  |  |  | 
| 39 |  |  |  |  |  |  | sub deflate | 
| 40 |  |  |  |  |  |  | { | 
| 41 | 152 |  |  | 152 | 1 | 143298 | my $obj = IO::Compress::Base::Common::createSelfTiedObject(undef, \$DeflateError); | 
| 42 | 152 |  |  |  |  | 563 | return $obj->_def(@_); | 
| 43 |  |  |  |  |  |  | } | 
| 44 |  |  |  |  |  |  |  | 
| 45 |  |  |  |  |  |  | sub mkComp | 
| 46 |  |  |  |  |  |  | { | 
| 47 | 299 |  |  | 299 | 0 | 476 | my $self = shift ; | 
| 48 | 299 |  |  |  |  | 421 | my $got = shift ; | 
| 49 |  |  |  |  |  |  |  | 
| 50 | 299 |  |  |  |  | 697 | my ($obj, $errstr, $errno) = IO::Compress::Adapter::Deflate::mkCompObject1( | 
| 51 |  |  |  |  |  |  | $got->getValue('crc32'), | 
| 52 |  |  |  |  |  |  | $got->getValue('adler32'), | 
| 53 |  |  |  |  |  |  | $got->getValue('level'), | 
| 54 |  |  |  |  |  |  | $got->getValue('strategy') | 
| 55 |  |  |  |  |  |  | ); | 
| 56 |  |  |  |  |  |  |  | 
| 57 | 299 | 50 |  |  |  | 946 | return $self->saveErrorString(undef, $errstr, $errno) | 
| 58 |  |  |  |  |  |  | if ! defined $obj; | 
| 59 |  |  |  |  |  |  |  | 
| 60 | 299 |  |  |  |  | 2181 | return $obj; | 
| 61 |  |  |  |  |  |  | } | 
| 62 |  |  |  |  |  |  |  | 
| 63 |  |  |  |  |  |  |  | 
| 64 |  |  |  |  |  |  | sub mkHeader | 
| 65 |  |  |  |  |  |  | { | 
| 66 | 298 |  |  | 298 | 0 | 513 | my $self = shift ; | 
| 67 | 298 |  |  |  |  | 772 | return ''; | 
| 68 |  |  |  |  |  |  | } | 
| 69 |  |  |  |  |  |  |  | 
| 70 |  |  |  |  |  |  | sub mkTrailer | 
| 71 |  |  |  |  |  |  | { | 
| 72 | 318 |  |  | 318 | 0 | 572 | my $self = shift ; | 
| 73 | 318 |  |  |  |  | 752 | return ''; | 
| 74 |  |  |  |  |  |  | } | 
| 75 |  |  |  |  |  |  |  | 
| 76 |  |  |  |  |  |  | sub mkFinalTrailer | 
| 77 |  |  |  |  |  |  | { | 
| 78 | 291 |  |  | 291 | 0 | 666 | return ''; | 
| 79 |  |  |  |  |  |  | } | 
| 80 |  |  |  |  |  |  |  | 
| 81 |  |  |  |  |  |  | sub getExtraParams | 
| 82 |  |  |  |  |  |  | { | 
| 83 | 323 |  |  | 323 | 0 | 560 | my $self = shift ; | 
| 84 | 323 |  |  |  |  | 1050 | return $self->getZlibParams(), | 
| 85 |  |  |  |  |  |  | } | 
| 86 |  |  |  |  |  |  |  | 
| 87 |  |  |  |  |  |  | sub getInverseClass | 
| 88 |  |  |  |  |  |  | { | 
| 89 | 16 |  |  | 16 |  | 202 | no warnings 'once'; | 
|  | 16 |  |  |  |  | 82 |  | 
|  | 16 |  |  |  |  | 1831 |  | 
| 90 | 23 |  |  | 23 | 0 | 74 | return ('IO::Uncompress::Inflate', | 
| 91 |  |  |  |  |  |  | \$IO::Uncompress::Inflate::InflateError); | 
| 92 |  |  |  |  |  |  | } | 
| 93 |  |  |  |  |  |  |  | 
| 94 |  |  |  |  |  |  | sub getFileInfo | 
| 95 |  |  |  |  |  |  | { | 
| 96 | 102 |  |  | 102 | 0 | 169 | my $self = shift ; | 
| 97 | 102 |  |  |  |  | 134 | my $params = shift; | 
| 98 | 102 |  |  |  |  | 272 | my $file = shift ; | 
| 99 |  |  |  |  |  |  |  | 
| 100 |  |  |  |  |  |  | } | 
| 101 |  |  |  |  |  |  |  | 
| 102 |  |  |  |  |  |  |  | 
| 103 |  |  |  |  |  |  |  | 
| 104 |  |  |  |  |  |  | 1; | 
| 105 |  |  |  |  |  |  |  | 
| 106 |  |  |  |  |  |  | __END__ |