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.39 by root, Tue Dec 10 15:31:40 2013 UTC vs.
Revision 1.40 by root, Sun Jan 5 14:24:54 2014 UTC

64 64
65package CBOR::XS; 65package CBOR::XS;
66 66
67use common::sense; 67use common::sense;
68 68
69our $VERSION = 1.12; 69our $VERSION = 1.25;
70our @ISA = qw(Exporter); 70our @ISA = qw(Exporter);
71 71
72our @EXPORT = qw(encode_cbor decode_cbor); 72our @EXPORT = qw(encode_cbor decode_cbor);
73 73
74use Exporter; 74use Exporter;
1136 my ($m, $e) = $_[0]->parts; 1136 my ($m, $e) = $_[0]->parts;
1137 tag 4, [$e->numify, $m] 1137 tag 4, [$e->numify, $m]
1138} 1138}
1139 1139
1140sub Time::Piece::TO_CBOR { 1140sub Time::Piece::TO_CBOR {
1141 tag 1, $_[0]->epoch 1141 tag 1, 0 + $_[0]->epoch
1142} 1142}
1143 1143
1144XSLoader::load "CBOR::XS", $VERSION; 1144XSLoader::load "CBOR::XS", $VERSION;
1145 1145
1146=head1 SEE ALSO 1146=head1 SEE ALSO

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines