Data::BitStream::MinimalVec - A minimal implementation of Data::BitStream
use Data::BitStream::MinimalVec; my $stream = Data::BitStream::MinimalVec->new; $stream->put_gamma($_) for (1 .. 20); $stream->rewind_for_read; my @values = $stream->get_gamma(-1);
An implementation of Data::BitStream. See the documentation for that module for many more examples, and Data::BitStream::Base for the API. This document only describes the unique features of this implementation, which is of limited value to people purely using Data::BitStream.
This implementation uses a Perl
vec to store the data, and shows basically the minimal work required to get an implementation working. Everything else is provided by the base class. It is slow, and Data::BitStream::WordVec is recommended for real work.
A private scalar holding the data as a vector.
Retrieves a reference to the private vector.
Sets the private vector to the empty string
These methods have custom implementations.
The following roles are included.
Dana Jacobsen <email@example.com>
Copyright 2011-2012 by Dana Jacobsen <firstname.lastname@example.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.