varint

AuthorSam Riyad
LicenseMIT
Homepagehttps://github.com/XnuKernPoll/ocaml-varint
Issue Trackerhttps://github.com/XnuKernPoll/ocaml-varint/issues
Tagsmirage and encoding
Maintainerflatmapds@gmail.com
Dependencies
&jbuilder
mstruct
PublishedJul 20, 2018
Source [http] https://github.com/XnuKernPoll/ocaml-varint/archive/v1.0.tar.gz
591f6b0f54f288bc2950ed597fa9f0e3
StatisticsInstalled once last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/varint/varint.1.0/opam

A simple varint implementation modeled after the one found in Go's standard library.

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.

No package is dependent