line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finnigan::AuditTag; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
78
|
|
|
2
|
|
|
|
|
75
|
|
4
|
2
|
|
|
2
|
|
9
|
use warnings FATAL => qw( all ); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
93
|
|
5
|
|
|
|
|
|
|
our $VERSION = 0.0206; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
10
|
use Finnigan; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
41
|
|
8
|
2
|
|
|
2
|
|
8
|
use base 'Finnigan::Decoder'; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
197
|
|
9
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
|
10
|
use overload ('""' => 'stringify'); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
12
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub decode { |
13
|
4
|
|
|
4
|
1
|
6
|
my ($class, $stream) = @_; |
14
|
|
|
|
|
|
|
|
15
|
4
|
|
|
|
|
19
|
my $fields = [ |
16
|
|
|
|
|
|
|
time => ['windows_time', 'TimestampWin64'], |
17
|
|
|
|
|
|
|
"tag[1]" => ['U0C50', 'UTF16LE'], |
18
|
|
|
|
|
|
|
"tag[2]" => ['U0C50', 'UTF16LE'], |
19
|
|
|
|
|
|
|
unknown_long => ['V', 'UInt32'], |
20
|
|
|
|
|
|
|
]; |
21
|
|
|
|
|
|
|
|
22
|
4
|
|
|
|
|
18
|
my $self = Finnigan::Decoder->read($stream, $fields); |
23
|
|
|
|
|
|
|
|
24
|
4
|
|
|
|
|
18
|
return bless $self, $class; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub time { |
28
|
1
|
|
|
1
|
1
|
3
|
my ( $self ) = @_; |
29
|
1
|
|
|
|
|
6
|
$self->{data}->{time}->{value}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub tag1 { |
33
|
0
|
|
|
0
|
1
|
|
my ( $self ) = @_; |
34
|
0
|
|
|
|
|
|
$self->{data}->{"tag[1]"}->{value}; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub stringify { |
38
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
|
|
|
my $time = $self->time; |
41
|
0
|
|
|
|
|
|
my $tag1 = $self->tag1; |
42
|
0
|
|
|
|
|
|
return "$time; $tag1"; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
__END__ |