Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 615 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 615 Bytes

eleb128

Build Status

LEB128 Erlang implementation.

Build

make

Tests

make test

Usage

$ make run
1> application:load(eleb128).
ok
2> eleb128:signed_encode(-128).
<<128,127>>
3> eleb128:unsigned_encode(128).
<<128,1>>
4> eleb128:signed_decode(<<128,127>>).
{-128,<<>>}
5> eleb128:unsigned_decode(<<128,1>>).
{128,<<>>}

Sponsored by FunBox