line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::AMF; |
2
|
7
|
|
|
7
|
|
14037
|
use 5.008001; |
|
7
|
|
|
|
|
30
|
|
|
7
|
|
|
|
|
278
|
|
3
|
7
|
|
|
7
|
|
24472
|
use Any::Moose; |
|
7
|
|
|
|
|
311086
|
|
|
7
|
|
|
|
|
59
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.09'; |
6
|
|
|
|
|
|
|
|
7
|
7
|
|
|
7
|
|
9019
|
use Data::AMF::Parser; |
|
7
|
|
|
|
|
26
|
|
|
7
|
|
|
|
|
78
|
|
8
|
7
|
|
|
7
|
|
4954
|
use Data::AMF::Formatter; |
|
7
|
|
|
|
|
26
|
|
|
7
|
|
|
|
|
75
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has version => ( |
11
|
|
|
|
|
|
|
is => 'rw', |
12
|
|
|
|
|
|
|
isa => 'Int', |
13
|
|
|
|
|
|
|
default => sub { 0 }, |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
has parser => ( |
17
|
|
|
|
|
|
|
is => 'rw', |
18
|
|
|
|
|
|
|
lazy => 1, |
19
|
|
|
|
|
|
|
default => sub { |
20
|
|
|
|
|
|
|
my $self = shift; |
21
|
|
|
|
|
|
|
Data::AMF::Parser->new( version => $self->version ); |
22
|
|
|
|
|
|
|
}, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
has formatter => ( |
26
|
|
|
|
|
|
|
is => 'rw', |
27
|
|
|
|
|
|
|
lazy => 1, |
28
|
|
|
|
|
|
|
default => sub { |
29
|
|
|
|
|
|
|
my $self = shift; |
30
|
|
|
|
|
|
|
Data::AMF::Formatter->new( version => $self->version ); |
31
|
|
|
|
|
|
|
}, |
32
|
|
|
|
|
|
|
); |
33
|
|
|
|
|
|
|
|
34
|
7
|
|
|
7
|
|
1504
|
no Any::Moose; |
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
111
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub serialize { |
37
|
11
|
|
|
11
|
1
|
55
|
my $self = shift; |
38
|
11
|
|
|
|
|
84
|
$self->formatter->format(@_); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub deserialize { |
42
|
24
|
|
|
24
|
1
|
119
|
my $self = shift; |
43
|
24
|
|
|
|
|
221
|
$self->parser->parse(@_); |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |