LEB128 codec in acidlisp.
same api as chrisdickinson/varint following abstract-encoding interface.
currently, only int32 is supported.
encode int
as leb128 varint into byte_vector
at position start
.
returns the number of bytes used.
decodes a varint from byte_vector
at position start
.
returns the int
that was decoded.
returns the number of bytes used by previous call to decode
or encode
returns the number of bytes needed to encode int
MIT