line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MsgPack::Raw; |
2
|
|
|
|
|
|
|
$MsgPack::Raw::VERSION = '0.05'; |
3
|
18
|
|
|
18
|
|
1233913
|
use strict; |
|
18
|
|
|
|
|
191
|
|
|
18
|
|
|
|
|
526
|
|
4
|
18
|
|
|
18
|
|
94
|
use warnings; |
|
18
|
|
|
|
|
31
|
|
|
18
|
|
|
|
|
1017
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
require XSLoader; |
7
|
|
|
|
|
|
|
XSLoader::load ('MsgPack::Raw', $MsgPack::Raw::VERSION); |
8
|
|
|
|
|
|
|
|
9
|
18
|
|
|
18
|
|
7595
|
use MsgPack::Raw::Bool; |
|
18
|
|
|
|
|
50
|
|
|
18
|
|
|
|
|
555
|
|
10
|
18
|
|
|
18
|
|
7407
|
use MsgPack::Raw::Ext; |
|
18
|
|
|
|
|
41
|
|
|
18
|
|
|
|
|
496
|
|
11
|
18
|
|
|
18
|
|
7378
|
use MsgPack::Raw::Packer; |
|
18
|
|
|
|
|
44
|
|
|
18
|
|
|
|
|
487
|
|
12
|
18
|
|
|
18
|
|
7514
|
use MsgPack::Raw::Unpacker; |
|
18
|
|
|
|
|
46
|
|
|
18
|
|
|
|
|
709
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=for HTML |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=cut |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 NAME |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
MsgPack::Raw - Perl bindings to the msgpack C library |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 VERSION |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
version 0.05 |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 SYNOPSIS |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
use MsgPack::Raw; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
my $packer = MsgPack::Raw::Packer->new; |
39
|
|
|
|
|
|
|
my $packed = $packer->pack ({ a => 'b', c => 'd' }); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
my $unpacker = MsgPack::Raw::Unpacker->new; |
42
|
|
|
|
|
|
|
$unpacker->feed ($packed); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
my $unpacked = $unpacker->next(); |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 ABOUT MESSAGEPACK |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
L is an efficient binary serialization format. It lets you exchange |
49
|
|
|
|
|
|
|
data among multiple languages like JSON, but it's faster and smaller. Small |
50
|
|
|
|
|
|
|
integers are encoded into a single byte, and typical short strings require only |
51
|
|
|
|
|
|
|
one extra byte in addition to the strings themselves. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 DOCUMENTATION |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 L |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head2 L |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head2 L |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head2 L |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 AUTHOR |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Jacques Germishuys |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Copyright 2019 Jacques Germishuys. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
72
|
|
|
|
|
|
|
under the terms of either: the GNU General Public License as published |
73
|
|
|
|
|
|
|
by the Free Software Foundation; or the Artistic License. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
See http://dev.perl.org/licenses/ for more information. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=cut |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
1; # End of MsgPack::Raw |