| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Data::Record::Serialize::Encode::array; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: encoded a record as /rdb |
|
4
|
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
307869
|
use v5.12; |
|
|
2
|
|
|
|
|
9
|
|
|
6
|
2
|
|
|
2
|
|
772
|
use Moo::Role; |
|
|
2
|
|
|
|
|
21128
|
|
|
|
2
|
|
|
|
|
24
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '2.02'; |
|
9
|
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
|
1653
|
use namespace::clean; |
|
|
2
|
|
|
|
|
21029
|
|
|
|
2
|
|
|
|
|
19
|
|
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub setup { |
|
18
|
1
|
|
|
1
|
0
|
2
|
my $self = shift; |
|
19
|
1
|
|
|
|
|
21
|
$self->say( $self->output_fields ); |
|
20
|
|
|
|
|
|
|
} |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub encode { |
|
28
|
1
|
|
|
1
|
0
|
2
|
my $self = shift; |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
## no critic (TestingAndDebugging::ProhibitNoWarnings) |
|
31
|
2
|
|
|
2
|
|
812
|
no warnings 'uninitialized'; |
|
|
2
|
|
|
|
|
6
|
|
|
|
2
|
|
|
|
|
226
|
|
|
32
|
1
|
|
|
|
|
1
|
return [ @{ $_[0] }{ @{ $self->output_fields } } ]; |
|
|
1
|
|
|
|
|
9
|
|
|
|
1
|
|
|
|
|
12
|
|
|
33
|
|
|
|
|
|
|
} |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
with 'Data::Record::Serialize::Role::Encode'; |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
# |
|
40
|
|
|
|
|
|
|
# This file is part of Data-Record-Serialize |
|
41
|
|
|
|
|
|
|
# |
|
42
|
|
|
|
|
|
|
# This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory. |
|
43
|
|
|
|
|
|
|
# |
|
44
|
|
|
|
|
|
|
# This is free software, licensed under: |
|
45
|
|
|
|
|
|
|
# |
|
46
|
|
|
|
|
|
|
# The GNU General Public License, Version 3, June 2007 |
|
47
|
|
|
|
|
|
|
# |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
__END__ |