🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

acid-leb128

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acid-leb128

LEB128 codec in acidlisp.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

acid-leb128

LEB128 codec in acidlisp.

same api as chrisdickinson/varint following abstract-encoding interface.

currently, only int32 is supported.

encode(int, byte_vector, start) => bytes

encode int as leb128 varint into byte_vector at position start. returns the number of bytes used.

decode(byte_vector, start) => int

decodes a varint from byte_vector at position start. returns the int that was decoded.

bytes()

returns the number of bytes used by previous call to decode or encode

encoding_length(int) => bytes

returns the number of bytes needed to encode int

License

MIT

FAQs

Package last updated on 27 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts