GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DATA::MESSAGEPACK::STREAM (3)

.ds Aq ’

NAME

Data::MessagePack::Stream - yet another messagepack streaming deserializer

CONTENTS

SYNOPSIS



    use Data::Dumper;
    my $unpacker = Data::MessagePack::Stream->new;
   
    while (read($fh, my $buf, 1024)) {
        $unpacker->feed($buf);
   
        while ($unpacker->next) {
            print Dumper($unpacker->data);
        }
    }



DESCRIPTION

Data::MessagePack::Stream is streaming deserializer for MessagePack.

This module is alternate for Data::MessagePack::Unpacker. Unlike original unpacker, this module support internal buffer and it’s possible to handle streaming data correctly.

METHODS

    new



    my $unpacker = Data::MessagePack::Stream->new;



Create new stream unpacker.

    feed($data)



    $unpacker->feed($data);



Push $data into unpacker’s internal buffer.

    next



    my $bool = $unpacker->next;



If parsable MessagePack packet is fed, return true. You can get that parsed data by data method described below.

    data



    my $data = $unpacker->data;



Return parsed perl object.

AUTHOR

Daisuke Murase <typester@cpan.org>

COPYRIGHT AND LICENSE

Copyright (c) 2012 by KAYAC Inc.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DATA::MESSAGEPACK::STREAM (3) 2012-07-25

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.