line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MsgPack::Raw::Ext; |
2
|
|
|
|
|
|
|
$MsgPack::Raw::Ext::VERSION = '0.04'; |
3
|
18
|
|
|
18
|
|
112
|
use strict; |
|
18
|
|
|
|
|
30
|
|
|
18
|
|
|
|
|
418
|
|
4
|
18
|
|
|
18
|
|
74
|
use warnings; |
|
18
|
|
|
|
|
28
|
|
|
18
|
|
|
|
|
1177
|
|
5
|
|
|
|
|
|
|
use overload |
6
|
3
|
50
|
|
3
|
|
1465
|
'==' => sub { $_[0]->{type} == $_[1]->{type} && $_[0]->{data} eq $_[1]->{data} }, |
7
|
18
|
|
|
18
|
|
99
|
fallback => 1 ; |
|
18
|
|
|
|
|
45
|
|
|
18
|
|
|
|
|
120
|
|
8
|
18
|
|
|
18
|
|
1341
|
use MsgPack::Raw; |
|
18
|
|
|
|
|
29
|
|
|
18
|
|
|
|
|
1465
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new |
12
|
|
|
|
|
|
|
{ |
13
|
20
|
|
|
20
|
1
|
1366
|
my ($this, $type, $data) = @_; |
14
|
|
|
|
|
|
|
|
15
|
20
|
|
33
|
|
|
63
|
my $class = ref ($this) || $this; |
16
|
20
|
|
|
|
|
37
|
my $self = |
17
|
|
|
|
|
|
|
{ |
18
|
|
|
|
|
|
|
type => $type, |
19
|
|
|
|
|
|
|
data => $data, |
20
|
|
|
|
|
|
|
}; |
21
|
|
|
|
|
|
|
|
22
|
20
|
|
|
|
|
110
|
return bless $self, $class; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 NAME |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
MsgPack::Raw::Ext - msgpack Ext class |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 VERSION |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
version 0.04 |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 DESCRIPTION |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
MessagePack Ext class |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 SYNOPSIS |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
use MsgPack::Raw; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 METHODS |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head2 new( $type, $data) |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Create a new ext type. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 AUTHOR |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Jacques Germishuys |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Copyright 2019 Jacques Germishuys. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
57
|
|
|
|
|
|
|
under the terms of either: the GNU General Public License as published |
58
|
|
|
|
|
|
|
by the Free Software Foundation; or the Artistic License. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
See http://dev.perl.org/licenses/ for more information. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
1; # End of MsgPack::Raw::Ext |