line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MsgPack::Raw::Packer; |
2
|
|
|
|
|
|
|
$MsgPack::Raw::Packer::VERSION = '0.03'; |
3
|
17
|
|
|
17
|
|
110
|
use strict; |
|
17
|
|
|
|
|
37
|
|
|
17
|
|
|
|
|
486
|
|
4
|
17
|
|
|
17
|
|
84
|
use warnings; |
|
17
|
|
|
|
|
31
|
|
|
17
|
|
|
|
|
368
|
|
5
|
17
|
|
|
17
|
|
78
|
use MsgPack::Raw; |
|
17
|
|
|
|
|
35
|
|
|
17
|
|
|
|
|
602
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
MsgPack::Raw::Packer - msgpack Packer class |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 VERSION |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
version 0.03 |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 DESCRIPTION |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
MessagePack packer |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 SYNOPSIS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
use MsgPack::Raw; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
my $packer = MsgPack::Raw::Packer->new; |
24
|
|
|
|
|
|
|
my $string = $packer->pack ({ a => 'b', c => [undef, 1, 2, '3']}); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 METHODS |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head2 new ( ) |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Create a new packer. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head2 pack ( $data ) |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Pack C<$data> into a msgpack string. Objects other than C |
35
|
|
|
|
|
|
|
and C cannot be packed. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 AUTHOR |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Jacques Germishuys |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Copyright 2019 Jacques Germishuys. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
46
|
|
|
|
|
|
|
under the terms of either: the GNU General Public License as published |
47
|
|
|
|
|
|
|
by the Free Software Foundation; or the Artistic License. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
See http://dev.perl.org/licenses/ for more information. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=cut |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; # End of MsgPack::Raw::Packer |