package varint

  1. Overview
  2. No Docs
A simple varint implementation modeled after the one found in Go's standard library.

Install

Authors

Maintainers

Sources

v1.0.tar.gz
md5=591f6b0f54f288bc2950ed597fa9f0e3

Description

Originally I wrote it because I wanted to implement a protocol in ocaml that used it, but did not want to use piqi, or protobuf.

What varint encoding does is that you can input an int32 or int64, and for smaller numbers, it will take up less space, protobuf uses this technique for field length prefixing, as a result it is more space efficient than using an 32 bit or 64 bit int, but on the other hand it does take more CPU time.

Tags

mirage encoding

Published: 23 Jul 2018

Dependencies (3)

  1. mstruct
  2. jbuilder >= "1.0+beta7"
  3. ocaml

Dev Dependencies

None

Used by

None

Conflicts

None