| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package IO::Compress::Deflate ; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
require 5.006 ; |
|
4
|
|
|
|
|
|
|
|
|
5
|
16
|
|
|
16
|
|
89630
|
use strict ; |
|
|
16
|
|
|
|
|
36
|
|
|
|
16
|
|
|
|
|
554
|
|
|
6
|
16
|
|
|
16
|
|
107
|
use warnings; |
|
|
16
|
|
|
|
|
63
|
|
|
|
16
|
|
|
|
|
903
|
|
|
7
|
16
|
|
|
16
|
|
4560
|
use bytes; |
|
|
16
|
|
|
|
|
4851
|
|
|
|
16
|
|
|
|
|
92
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
require Exporter ; |
|
10
|
|
|
|
|
|
|
|
|
11
|
16
|
|
|
16
|
|
8552
|
use IO::Compress::RawDeflate 2.220 (); |
|
|
16
|
|
|
|
|
490
|
|
|
|
16
|
|
|
|
|
676
|
|
|
12
|
16
|
|
|
16
|
|
90
|
use IO::Compress::Adapter::Deflate 2.220 ; |
|
|
16
|
|
|
|
|
262
|
|
|
|
16
|
|
|
|
|
3615
|
|
|
13
|
|
|
|
|
|
|
|
|
14
|
16
|
|
|
16
|
|
7030
|
use IO::Compress::Zlib::Constants 2.220 ; |
|
|
16
|
|
|
|
|
339
|
|
|
|
16
|
|
|
|
|
2049
|
|
|
15
|
16
|
|
|
16
|
|
105
|
use IO::Compress::Base::Common 2.220 qw(); |
|
|
16
|
|
|
|
|
302
|
|
|
|
16
|
|
|
|
|
7956
|
|
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS, %DEFLATE_CONSTANTS, $DeflateError); |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
$VERSION = '2.220'; |
|
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
|
|
|
|
|
|
|
$EXPORT_TAGS{all} = [ defined $EXPORT_TAGS{all} ? @{ $EXPORT_TAGS{all} } : (), @EXPORT_OK ] ; |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Exporter::export_ok_tags('all'); |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub new |
|
33
|
|
|
|
|
|
|
{ |
|
34
|
172
|
|
|
172
|
1
|
625301
|
my $class = shift ; |
|
35
|
|
|
|
|
|
|
|
|
36
|
172
|
|
|
|
|
853
|
my $obj = IO::Compress::Base::Common::createSelfTiedObject($class, \$DeflateError); |
|
37
|
172
|
|
|
|
|
935
|
return $obj->_create(undef, @_); |
|
38
|
|
|
|
|
|
|
} |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub deflate |
|
41
|
|
|
|
|
|
|
{ |
|
42
|
152
|
|
|
152
|
1
|
182093
|
my $obj = IO::Compress::Base::Common::createSelfTiedObject(undef, \$DeflateError); |
|
43
|
152
|
|
|
|
|
692
|
return $obj->_def(@_); |
|
44
|
|
|
|
|
|
|
} |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub mkComp |
|
47
|
|
|
|
|
|
|
{ |
|
48
|
299
|
|
|
299
|
0
|
527
|
my $self = shift ; |
|
49
|
299
|
|
|
|
|
547
|
my $got = shift ; |
|
50
|
|
|
|
|
|
|
|
|
51
|
299
|
|
|
|
|
997
|
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
|
50
|
|
|
|
1130
|
return $self->saveErrorString(undef, $errstr, $errno) |
|
59
|
|
|
|
|
|
|
if ! defined $obj; |
|
60
|
|
|
|
|
|
|
|
|
61
|
299
|
|
|
|
|
2667
|
return $obj; |
|
62
|
|
|
|
|
|
|
} |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
sub mkHeader |
|
66
|
|
|
|
|
|
|
{ |
|
67
|
298
|
|
|
298
|
0
|
561
|
my $self = shift ; |
|
68
|
298
|
|
|
|
|
1115
|
return ''; |
|
69
|
|
|
|
|
|
|
} |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
sub mkTrailer |
|
72
|
|
|
|
|
|
|
{ |
|
73
|
318
|
|
|
318
|
0
|
615
|
my $self = shift ; |
|
74
|
318
|
|
|
|
|
960
|
return ''; |
|
75
|
|
|
|
|
|
|
} |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
sub mkFinalTrailer |
|
78
|
|
|
|
|
|
|
{ |
|
79
|
291
|
|
|
291
|
0
|
858
|
return ''; |
|
80
|
|
|
|
|
|
|
} |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
sub getExtraParams |
|
83
|
|
|
|
|
|
|
{ |
|
84
|
323
|
|
|
323
|
0
|
646
|
my $self = shift ; |
|
85
|
323
|
|
|
|
|
1473
|
return $self->getZlibParams(), |
|
86
|
|
|
|
|
|
|
} |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
sub getInverseClass |
|
89
|
|
|
|
|
|
|
{ |
|
90
|
16
|
|
|
16
|
|
117
|
no warnings 'once'; |
|
|
16
|
|
|
|
|
32
|
|
|
|
16
|
|
|
|
|
2232
|
|
|
91
|
23
|
|
|
23
|
0
|
82
|
return ('IO::Uncompress::Inflate', |
|
92
|
|
|
|
|
|
|
\$IO::Uncompress::Inflate::InflateError); |
|
93
|
|
|
|
|
|
|
} |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
sub getFileInfo |
|
96
|
|
|
|
|
|
|
{ |
|
97
|
102
|
|
|
102
|
0
|
245
|
my $self = shift ; |
|
98
|
102
|
|
|
|
|
2125
|
my $params = shift; |
|
99
|
102
|
|
|
|
|
303
|
my $file = shift ; |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
} |
|
102
|
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
1; |
|
106
|
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
__END__ |