Data-MessagePack-Stream
view release on metacpan or search on metacpan
my $count = 0;
for my $b (split '', $buf) {
$stream->feed($b);
while ($stream->next) {
$count++;
is $stream->data, 'hoge', 'data ok';
}
}
is $count, 100, 'decoded count ok';
}
{
# New specification: Str type
my $utf8_mp = Data::MessagePack->new->utf8;
my $stream = Data::MessagePack::Stream->new;
$stream->feed( $utf8_mp->encode(Encode::decode_utf8("ããããã")));
ok $stream->next, 'next ok';
( run in 0.385 second using v1.01-cache-2.11-cpan-26ccb49234f )