line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finnigan::OLE2FAT; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
85
|
|
4
|
2
|
|
|
2
|
|
12
|
use warnings FATAL => qw( all ); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
98
|
|
5
|
|
|
|
|
|
|
our $VERSION = 0.0206; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
13
|
use Finnigan; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
51
|
|
8
|
2
|
|
|
2
|
|
10
|
use base 'Finnigan::Decoder'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
157
|
|
9
|
2
|
|
|
2
|
|
11
|
use Carp qw/confess/; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
456
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub decode { |
12
|
2
|
|
|
2
|
1
|
4
|
my ($class, $stream, $param) = @_; |
13
|
2
|
|
|
|
|
5
|
my ($start, $count) = @$param; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# do a null read to initialize internal variables |
16
|
2
|
|
|
|
|
8
|
my $self = Finnigan::Decoder->read($stream, [], $param); |
17
|
2
|
|
|
|
|
7
|
bless $self, $class; |
18
|
|
|
|
|
|
|
|
19
|
2
|
|
|
|
|
11
|
$self->{start} = $start; # this is used in Hachoir to generate continuous index in descriptions |
20
|
2
|
|
|
|
|
3
|
$self->{count} = $count; |
21
|
|
|
|
|
|
|
|
22
|
2
|
|
|
|
|
20
|
$self->iterate_scalar($stream, $count, sect => ['V', 'UInt32']); |
23
|
|
|
|
|
|
|
|
24
|
2
|
|
|
|
|
9
|
return $self; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub sect { |
28
|
49
|
|
|
49
|
1
|
156
|
shift->{data}->{sect}->{value}; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
__END__ |