line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Compress::PPMd; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
57009
|
use 5.006; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
84
|
|
4
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
72
|
|
5
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
324
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.11'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
require Exporter; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( 'mrm' => [ qw(MRM_RESTART |
14
|
|
|
|
|
|
|
MRM_CUTOFF |
15
|
|
|
|
|
|
|
MRM_FREEZE) ] ); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'mrm'} } ); |
18
|
|
|
|
|
|
|
our @EXPORT = qw(); |
19
|
|
|
|
|
|
|
|
20
|
2
|
|
|
2
|
|
18
|
use constant MRM_RESTART => 1; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
199
|
|
21
|
2
|
|
|
2
|
|
10
|
use constant MRM_CUTOFF => 2; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
97
|
|
22
|
2
|
|
|
2
|
|
9
|
use constant MRM_FREEZE => 3; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
471
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
require XSLoader; |
26
|
|
|
|
|
|
|
XSLoader::load('Compress::PPMd', $VERSION); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub Compress::PPMd::Encoder::deflate { |
29
|
0
|
0
|
|
0
|
|
|
if (wantarray) { |
30
|
0
|
|
|
|
|
|
return ($_[0]->encode($_[1]), 0) |
31
|
|
|
|
|
|
|
} |
32
|
0
|
|
|
|
|
|
$_[0]->encode($_[1]) |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub Compress::PPMd::Decoder::inflate { |
36
|
0
|
0
|
|
0
|
|
|
if (wantarray) { |
37
|
0
|
|
|
|
|
|
return ($_[0]->decode($_[1]), 0) |
38
|
|
|
|
|
|
|
} |
39
|
0
|
|
|
|
|
|
$_[0]->decode($_[1]) |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub Compress::PPMd::Encoder::flush { |
43
|
0
|
0
|
|
0
|
|
|
wantarray ? ("", 0) : "" |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |
47
|
|
|
|
|
|
|
__END__ |