package vlq

Not available on OCaml 5.5
  1. Overview
  2. Docs
A simple library for encoding variable-length quantities

Install

dune-project
 Dependency

Authors

Maintainers

Sources

vlq-v0.2.1.tbz
sha256=b16745cd826a30fa44cdb314b3d26eb9c262826bfe18b61eaedd024ce04d990b
sha512=f8bc74970009c685315d641358f7a6a6b959c9ba621a98c3149335199c9e0c59233f60add59f025c20f26a02c30ca9b3a18790614110d39c6960c40013dc63fc

Description

A simple library for encoding variable-length quantities.

Added to opam-repository:

README

ocaml-vlq

A simple library for encoding variable-length quantities.

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

Example

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

let stream = Stream.of_string "qxmvrH" in
Vlq.Base64.decode stream (* 123456789 *)

This encoding can be used to generate JavaScript sourcemaps.

License

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

Dependencies (2)

  1. dune >= "2.0"
  2. ocaml < "5.0.0"

Dev Dependencies (1)

  1. ounit2 with-test

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building vlq with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.2.1 (this version) good good n/a n/a n/a
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure