package vlq

  1. Overview
  2. Docs
A simple library for encoding variable-length quantities.

Install

Dune Dependency

Authors

Maintainers

Sources

vlq-0.1.0.tbz
sha256=18eb13991b3e333349783764cae4fbd3e2653517273abce2a7a58226cf9b6454
md5=42ed0c589207fb2b6c77834070eba4ea

Description

Published: 14 Mar 2018

README

ocaml-vlq

A simple library for encoding variable-length quantities.

It currently supports writing a base64-encoded integer to a Buffer. Patches implementing decoding or other forms of encoding are welcome!

Example

let buf = Buffer.create 10 in
Vlq.Base64.encode buf 123456789;
Buffer.contents buf (* "qxmvrH" *)

This encoding can be used to generate JavaScript sourcemaps.

License

ocaml-vlq is MIT licensed, as found in the LICENSE file.

Dependencies (2)

  1. jbuilder >= "1.0+beta7"
  2. ocaml >= "4.01.0"

Dev Dependencies (1)

  1. ounit with-test & >= "2.0.0"

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.