NAME

Encode::Bijou64 - Encode and decode Bijou64 integers

SYNOPSIS

use Encode::Bijou64;

my $bytes = encode_bijou64(123456);
my $num   = decode_bijou64($bytes);

DESCRIPTION

Encode::Bijou64 implements the Bijou64 variable-length integer encoding format described by Ink & Switch.

Small integers occupy fewer bytes while preserving efficient decoding.

FUNCTIONS

encode_bijou64($integer)

Encodes a non-negative integer into a Bijou64 byte string.

decode_bijou64($bytes)

Decodes a Bijou64 byte string and returns the integer value.

SEE ALSO

https://www.inkandswitch.com/tangents/bijou64/

AUTHOR

Scott Baker

LICENSE

Same terms as Perl itself.