mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 13:02:13 +01:00
51 lines
855 B
Perl
51 lines
855 B
Perl
package Data::MessagePack;
|
|
use strict;
|
|
use warnings;
|
|
use XSLoader;
|
|
use 5.008001;
|
|
|
|
our $VERSION = '0.07';
|
|
our $PreferInteger = 0;
|
|
|
|
our $true = do { bless \(my $dummy = 1), "Data::MessagePack::Boolean" };
|
|
our $false = do { bless \(my $dummy = 0), "Data::MessagePack::Boolean" };
|
|
sub true () { $true }
|
|
sub false () { $false }
|
|
|
|
XSLoader::load(__PACKAGE__, $VERSION);
|
|
|
|
1;
|
|
__END__
|
|
|
|
=head1 NAME
|
|
|
|
Data::MessagePack - messagepack
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
my $packed = Data::MessagePack->pack($dat);
|
|
my $unpacked = Data::MessagePack->unpack($dat);
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
Data::MessagePack is a binary packer for perl.
|
|
|
|
=head1 Configuration Variables
|
|
|
|
=over 4
|
|
|
|
=item $Data::MessagePack::PreferInteger
|
|
|
|
Pack the string as int when the value looks like int(EXPERIMENTAL).
|
|
|
|
=back
|
|
|
|
=head1 AUTHORS
|
|
|
|
Tokuhiro Matsuno
|
|
|
|
=head1 SEE ALSO
|
|
|
|
L<http://msgpack.sourceforge.jp/>
|
|
|