package vlq
A simple library for encoding variable-length quantities
Install
Dune Dependency
Authors
Maintainers
Sources
vlq-v0.2.1.tbz
sha256=b16745cd826a30fa44cdb314b3d26eb9c262826bfe18b61eaedd024ce04d990b
sha512=f8bc74970009c685315d641358f7a6a6b959c9ba621a98c3149335199c9e0c59233f60add59f025c20f26a02c30ca9b3a18790614110d39c6960c40013dc63fc
README.md.html
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.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>