line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MsgPack::Raw; |
2
|
|
|
|
|
|
|
$MsgPack::Raw::VERSION = '0.03'; |
3
|
17
|
|
|
17
|
|
1156142
|
use strict; |
|
17
|
|
|
|
|
217
|
|
|
17
|
|
|
|
|
502
|
|
4
|
17
|
|
|
17
|
|
99
|
use warnings; |
|
17
|
|
|
|
|
29
|
|
|
17
|
|
|
|
|
1001
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
require XSLoader; |
7
|
|
|
|
|
|
|
XSLoader::load ('MsgPack::Raw', $MsgPack::Raw::VERSION); |
8
|
|
|
|
|
|
|
|
9
|
17
|
|
|
17
|
|
7228
|
use MsgPack::Raw::Bool; |
|
17
|
|
|
|
|
45
|
|
|
17
|
|
|
|
|
507
|
|
10
|
17
|
|
|
17
|
|
6858
|
use MsgPack::Raw::Ext; |
|
17
|
|
|
|
|
43
|
|
|
17
|
|
|
|
|
482
|
|
11
|
17
|
|
|
17
|
|
6967
|
use MsgPack::Raw::Packer; |
|
17
|
|
|
|
|
43
|
|
|
17
|
|
|
|
|
454
|
|
12
|
17
|
|
|
17
|
|
6972
|
use MsgPack::Raw::Unpacker; |
|
17
|
|
|
|
|
41
|
|
|
17
|
|
|
|
|
679
|
|
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.03 |
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 |