| 1 | package IO::Compress::Deflate ; | ||||||||||
| 2 | |||||||||||
| 3 | 16 | require 5.006 ; | |||||||||
| 4 | |||||||||||
| 5 | 16 | ▶ | use strict ; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 16 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 16 | ▶ | use bytes; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 16 | require Exporter ; | |||||||||
| 10 | |||||||||||
| 11 | 16 | ▶ | use IO::Compress::RawDeflate 2.223 (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 16 | ▶ | use IO::Compress::Adapter::Deflate 2.223 ; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 16 | ▶ | use IO::Compress::Zlib::Constants 2.223 ; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | 16 | ▶ | use IO::Compress::Base::Common 2.223 qw(); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | |||||||||||
| 17 | |||||||||||
| 18 | 16 | our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS, %DEFLATE_CONSTANTS, $DeflateError); | |||||||||
| 19 | |||||||||||
| 20 | 16 | $VERSION = '2.223'; | |||||||||
| 21 | 16 | $DeflateError = ''; | |||||||||
| 22 | |||||||||||
| 23 | 16 | @ISA = qw(IO::Compress::RawDeflate Exporter); | |||||||||
| 24 | 16 | @EXPORT_OK = qw( $DeflateError deflate ) ; | |||||||||
| 25 | 16 | %EXPORT_TAGS = %IO::Compress::RawDeflate::DEFLATE_CONSTANTS ; | |||||||||
| 26 | |||||||||||
| 27 | 16 | ▶ | $EXPORT_TAGS{all} = [ defined $EXPORT_TAGS{all} ? @{ $EXPORT_TAGS{all} } : (), @EXPORT_OK ] ; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | |||||||||||
| 29 | 16 | Exporter::export_ok_tags('all'); | |||||||||
| 30 | |||||||||||
| 31 | |||||||||||
| 32 | sub new | ||||||||||
| 33 | { | ||||||||||
| 34 | 174 | ▶ | my $class = shift ; | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 35 | |||||||||||
| 36 | 174 | my $obj = IO::Compress::Base::Common::createSelfTiedObject($class, \$DeflateError); | |||||||||
| 37 | 174 | return $obj->_create(undef, @_); | |||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | sub deflate | ||||||||||
| 41 | { | ||||||||||
| 42 | 152 | ▶ | my $obj = IO::Compress::Base::Common::createSelfTiedObject(undef, \$DeflateError); | ||||||||
|
Subroutine
deflate: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 43 | 152 | return $obj->_def(@_); | |||||||||
| 44 | } | ||||||||||
| 45 | |||||||||||
| 46 | sub mkComp | ||||||||||
| 47 | { | ||||||||||
| 48 | 299 | ▶ | my $self = shift ; | ||||||||
|
Subroutine
mkComp: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||
| 49 | 299 | my $got = shift ; | |||||||||
| 50 | |||||||||||
| 51 | 299 | my ($obj, $errstr, $errno) = IO::Compress::Adapter::Deflate::mkCompObject1( | |||||||||
| 52 | $got->getValue('crc32'), | ||||||||||
| 53 | $got->getValue('adler32'), | ||||||||||
| 54 | $got->getValue('level'), | ||||||||||
| 55 | $got->getValue('strategy') | ||||||||||
| 56 | ); | ||||||||||
| 57 | |||||||||||
| 58 | 299 | ▶ | return $self->saveErrorString(undef, $errstr, $errno) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 59 | if ! defined $obj; | ||||||||||
| 60 | |||||||||||
| 61 | 299 | return $obj; | |||||||||
| 62 | } | ||||||||||
| 63 | |||||||||||
| 64 | |||||||||||
| 65 | sub mkHeader | ||||||||||
| 66 | { | ||||||||||
| 67 | 298 | ▶ | my $self = shift ; | ||||||||
|
Subroutine
mkHeader: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 68 | 298 | return ''; | |||||||||
| 69 | } | ||||||||||
| 70 | |||||||||||
| 71 | sub mkTrailer | ||||||||||
| 72 | { | ||||||||||
| 73 | 318 | ▶ | my $self = shift ; | ||||||||
|
Subroutine
mkTrailer: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 74 | 318 | return ''; | |||||||||
| 75 | } | ||||||||||
| 76 | |||||||||||
| 77 | sub mkFinalTrailer | ||||||||||
| 78 | { | ||||||||||
| 79 | 291 | ▶ | return ''; | ||||||||
|
Subroutine
mkFinalTrailer: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 80 | } | ||||||||||
| 81 | |||||||||||
| 82 | sub getExtraParams | ||||||||||
| 83 | { | ||||||||||
| 84 | 325 | ▶ | my $self = shift ; | ||||||||
|
Subroutine
getExtraParams: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 85 | 325 | return $self->getZlibParams(), | |||||||||
| 86 | } | ||||||||||
| 87 | |||||||||||
| 88 | sub getInverseClass | ||||||||||
| 89 | { | ||||||||||
| 90 | 16 | ▶ | no warnings 'once'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 91 | 25 | ▶ | return ('IO::Uncompress::Inflate', | ||||||||
|
Subroutine
getInverseClass: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 92 | \$IO::Uncompress::Inflate::InflateError); | ||||||||||
| 93 | } | ||||||||||
| 94 | |||||||||||
| 95 | sub getFileInfo | ||||||||||
| 96 | { | ||||||||||
| 97 | 102 | ▶ | my $self = shift ; | ||||||||
|
Subroutine
getFileInfo: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 98 | 102 | my $params = shift; | |||||||||
| 99 | 102 | my $file = shift ; | |||||||||
| 100 | |||||||||||
| 101 | } | ||||||||||
| 102 | |||||||||||
| 103 | |||||||||||
| 104 | |||||||||||
| 105 | 16 | 1; | |||||||||
| 106 | |||||||||||
| 107 | __END__ | ||||||||||