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