| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Text::TNetstrings::XS; |
|
2
|
2
|
|
|
2
|
|
12
|
use strict; |
|
|
2
|
|
|
|
|
2
|
|
|
|
2
|
|
|
|
|
67
|
|
|
3
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
66
|
|
|
4
|
2
|
|
|
2
|
|
10
|
use base qw(Exporter); |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
206
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
require XSLoader; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Text::TNetstrings::XS - Fast data serialization using typed netstrings. |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 VERSION |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
Version 1.2.0 |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=cut |
|
17
|
|
|
|
|
|
|
|
|
18
|
2
|
|
|
2
|
|
10
|
use version 0.77; our $VERSION = version->declare("v1.2.0"); |
|
|
2
|
|
|
|
|
60
|
|
|
|
2
|
|
|
|
|
16
|
|
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
An XS (C) implementation of the tagged netstring specification. The |
|
23
|
|
|
|
|
|
|
interface is the same as documented in L. |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 EXPORT |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=over |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=item C |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=item C |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=item C<:all> |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
The C<:all> tag exports all the above subroutines. |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=back |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=cut |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
our @EXPORT_OK = qw(encode_tnetstrings decode_tnetstrings); |
|
42
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( |
|
43
|
|
|
|
|
|
|
"all" => \@EXPORT_OK, |
|
44
|
|
|
|
|
|
|
); |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
XSLoader::load('Text::TNetstrings::XS', $VERSION); |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 AUTHOR |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Sebastian Nowicki |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=cut |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; |