line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::MessagePack::Types; |
2
|
4
|
|
|
4
|
|
7313
|
use 5.008001; |
|
4
|
|
|
|
|
13
|
|
3
|
4
|
|
|
4
|
|
22
|
use strict; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
119
|
|
4
|
4
|
|
|
4
|
|
46
|
use warnings; |
|
4
|
|
|
|
|
21
|
|
|
4
|
|
|
|
|
138
|
|
5
|
4
|
|
|
4
|
|
589
|
use Data::MessagePack; |
|
4
|
|
|
|
|
1519
|
|
|
4
|
|
|
|
|
118
|
|
6
|
|
|
|
|
|
|
|
7
|
4
|
|
|
4
|
|
1997
|
use parent 'Exporter'; |
|
4
|
|
|
|
|
1217
|
|
|
4
|
|
|
|
|
22
|
|
8
|
|
|
|
|
|
|
our @EXPORT = qw/msgpack_number msgpack_bool msgpack_string/; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = "0.01"; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub msgpack_number($) { |
13
|
3
|
100
|
|
3
|
1
|
5094
|
return undef unless defined $_[0]; |
14
|
2
|
|
|
|
|
31
|
$_[0] + 0; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub msgpack_string($) { |
18
|
3
|
100
|
|
3
|
1
|
6306
|
return undef unless defined $_[0]; |
19
|
2
|
|
|
|
|
24
|
$_[0] . ''; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub msgpack_bool($) { |
23
|
3
|
100
|
|
3
|
1
|
8518
|
$_[0] ? Data::MessagePack::true : Data::MessagePack::false; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
__END__ |