line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Games::EternalLands::Binary::Unitvec16; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
92532
|
use 5.010000; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
127
|
|
4
|
3
|
|
|
3
|
|
19
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
114
|
|
5
|
3
|
|
|
3
|
|
25
|
use warnings; |
|
3
|
|
|
|
|
12
|
|
|
3
|
|
|
|
|
527
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
require Exporter; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( 'all' => [ qw( |
12
|
|
|
|
|
|
|
pack_unitvec16 unpack_unitvec16 |
13
|
|
|
|
|
|
|
) ] ); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our @EXPORT = qw( |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
require XSLoader; |
24
|
|
|
|
|
|
|
XSLoader::load('Games::EternalLands::Binary::Unitvec16', $VERSION); |
25
|
|
|
|
|
|
|
|
26
|
3
|
|
|
3
|
|
18
|
use Carp qw(croak); |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
1635
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub pack_unitvec16 { |
29
|
829
|
50
|
|
829
|
1
|
772312
|
croak "Expected array reference argument." if ref($_[0]) ne 'ARRAY'; |
30
|
829
|
50
|
|
|
|
1110
|
croak "Array must contain at least 3 elements." if @{$_[0]} < 3; |
|
829
|
|
|
|
|
3063
|
|
31
|
829
|
|
|
|
|
3616
|
return _pack_unitvec16($_[0]); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub unpack_unitvec16 { |
35
|
829
|
|
|
829
|
1
|
5842
|
return _unpack_unitvec16($_[0]); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
__END__ |