ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/CBOR-XS/XS.pm
(Generate patch)

Comparing CBOR-XS/XS.pm (file contents):
Revision 1.4 by root, Sat Oct 26 22:25:47 2013 UTC vs.
Revision 1.5 by root, Sat Oct 26 23:02:55 2013 UTC

16 $coder = CBOR::XS->new; 16 $coder = CBOR::XS->new;
17 #TODO 17 #TODO
18 18
19=head1 DESCRIPTION 19=head1 DESCRIPTION
20 20
21WARNING! THIS IS A PRE-ALPHA RELEASE! IT WILL CRASH, CORRUPT YOUR DATA AND 21WARNING! THIS IS A PRE-ALPHA RELEASE! IT WILL CRASH, CORRUPT YOUR DATA
22EAT YOUR CHILDREN! 22AND EAT YOUR CHILDREN! (Actually, apart from being untested and a bit
23feature-limited, it might already be useful).
23 24
24This module converts Perl data structures to CBOR and vice versa. Its 25This module converts Perl data structures to the Concise Binary Object
26Representation (CBOR) and vice versa. CBOR is a fast binary serialisation
27format that aims to use a superset of the JSON data model, i.e. when you
28can represent something in JSON, you should be able to represent it in
29CBOR.
30
31This makes it a faster and more compact binary alternative to JSON.
32
25primary goal is to be I<correct> and its secondary goal is to be 33The primary goal of this module is to be I<correct> and the secondary goal
26I<fast>. To reach the latter goal it was written in C. 34is to be I<fast>. To reach the latter goal it was written in C.
27 35
28See MAPPING, below, on how CBOR::XS maps perl values to CBOR values and 36See MAPPING, below, on how CBOR::XS maps perl values to CBOR values and
29vice versa. 37vice versa.
30 38
31=cut 39=cut
32 40
33package CBOR::XS; 41package CBOR::XS;
34 42
35use common::sense; 43use common::sense;
36 44
37our $VERSION = 0.02; 45our $VERSION = 0.03;
38our @ISA = qw(Exporter); 46our @ISA = qw(Exporter);
39 47
40our @EXPORT = qw(encode_cbor decode_cbor); 48our @EXPORT = qw(encode_cbor decode_cbor);
41 49
42use Exporter; 50use Exporter;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines