Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 550 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 550 Bytes

LEB128

Typescript library for the LEB128 encoding. Only supports numbers that can be represented as 32-bit integers.

Usage

import { SignedLeb128, UnsignedLeb128 } from "./mod.ts";

const valueToEncode = 5;
const signedEncodedValue = new SignedLeb128().encode(valueToEncode);
const unsignedEncodedValue = new UnsignedLeb128().encode(valueToEncode);

Stability

Before version 1.0.0 breaking changes may be introduced at any point.

Development

Execute the following command to run all tests:

deno test