mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 13:02:13 +01:00

Changelog diff is: diff --git a/perl/Changes b/perl/Changes index dd47b98..4120376 100644 --- a/perl/Changes +++ b/perl/Changes @@ -1,10 +1,15 @@ +0.23 + + (NO FEATURE CHANGES) + - fixed english docs(hanekomu++) + 0.22 - fixed issue on ithreads(broken from 0.21) 0.21 - - doc enhancment + - doc enhancments - micro performance tuning. 0.20
58 lines
1005 B
Plaintext
58 lines
1005 B
Plaintext
=head1 NAME
|
|
|
|
Data::MessagePack::Unpacker - messagepack streaming deserializer
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
use Data::Dumper;
|
|
my $up = Data::MessagePack::Unpacker->new;
|
|
my $ret = $up->execute($v, 0);
|
|
if ($ret != length($v)) {
|
|
fail "extra bytes";
|
|
}
|
|
return Dumper($up->data);
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
This is a streaming deserializer for messagepack.
|
|
|
|
=head1 METHODS
|
|
|
|
=over 4
|
|
|
|
=item my $up = Data::MessagePack::Unpacker->new()
|
|
|
|
creates a new instance of stream deserializer.
|
|
|
|
=item my $ret = $up->execute($data, $offset);
|
|
|
|
=item my $ret = $up->execute_limit($data, $offset, $limit)
|
|
|
|
$up->execute(substr($data, 0, 3), 0);
|
|
$up->execute($data, 3);
|
|
|
|
$offset is the offset of $data.
|
|
|
|
=item my $bool = $up->is_finished();
|
|
|
|
is this deserializer finished?
|
|
|
|
=item my $data = $up->data();
|
|
|
|
returns the deserialized object.
|
|
|
|
=item $up->reset();
|
|
|
|
resets the stream deserializer, without memory zone.
|
|
|
|
=back
|
|
|
|
=head1 AUTHORS
|
|
|
|
Tokuhiro Matsuno
|
|
|
|
=head1 SEE ALSO
|
|
|
|
L<Data::MessagePack>
|
|
|