ocplib-endian

AuthorPierre Chambart
Homepagehttps://github.com/OCamlPro/ocplib-endian
Issue Trackerhttps://github.com/OCamlPro/ocplib-endian/issues
Maintainerpierre.chambart@ocamlpro.com
Dependencies
&base-bytes
cppo>= 1.1.0
ocamlbuild
ocamlfind
PublishedDec 8, 2014
Source [http] https://github.com/OCamlPro/ocplib-endian/archive/0.8.tar.gz
2da1236f4fda0366ca68b50106de75eb
StatisticsInstalled 10times in last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ocplib-endian/ocplib-endian.0.8/opam

Optimised functions to read and write int16/32/64 from strings and bigarrays, based on new primitives added in version 4.01.

The library implements three modules:

  • EndianString works directly on strings, and provides submodules BigEndian and LittleEndian, with their unsafe counter-parts;
  • EndianBytes works directly on bytes, and provides submodules BigEndian and LittleEndian, with their unsafe counter-parts;
  • EndianBigstring works on bigstrings (Bigarrays of chars), and provides submodules BigEndian and LittleEndian, with their unsafe counter-parts;