-
-
16 Aug 2014 03:37:57 UTC
- Distribution: Data-BitStream
- Module version: 0.08
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Issues (0)
- Testers (676 / 0 / 0)
- Kwalitee
Bus factor: 1- 78.88% Coverage
- License: perl_5
- Perl: v5.6.2
- Activity
24 month- Tools
- Download (108.2KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Carp
- Class::XSAccessor
- Exporter
- Moo
- Moo::Role
- MooX::Types::MooseLike
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Data::BitStream::Code::EvenRodeh - A Role implementing Even-Rodeh codes
VERSION
version 0.08
DESCRIPTION
A role written for Data::BitStream that provides get and set methods for the Even-Rodeh codes. The role applies to a stream object.
METHODS
Provided Object Methods
- put_evenrodeh($value)
- put_evenrodeh(@values)
-
Insert one or more values as Even-Rodeh codes. Returns 1.
- get_evenrodeh()
- get_evenrodeh($count)
-
Decode one or more Even-Rodeh codes from the stream. If count is omitted, one value will be read. If count is negative, values will be read until the end of the stream is reached. In scalar context it returns the last code read; in array context it returns an array of all codes read.
Required Methods
- read
- write
- put_string
-
These methods are required for the role.
SEE ALSO
- S. Even, M. Rodeh, "Economical Encoding of Commas Between Strings", Comm ACM, Vol 21, No 4, pp 315-317, April 1978.
- Peter Fenwick, "Punctured Elias Codes for variable-length coding of the integers", Technical Report 137, Department of Computer Science, University of Auckland, December 1996
AUTHORS
Dana Jacobsen <dana@acm.org>
COPYRIGHT
Copyright 2011 by Dana Jacobsen <dana@acm.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Data::BitStream, copy and paste the appropriate command in to your terminal.
cpanm Data::BitStream
perl -MCPAN -e shell install Data::BitStream
For more information on module installation, please visit the detailed CPAN module installation guide.