ocplib-endian

Author Pierre Chambart
Homepage https://github.com/OCamlPro/ocplib-endian
Issue Tracker https://github.com/OCamlPro/ocplib-endian/issues
Maintainer pierre.chambart@ocamlpro.com
Dependencies
& base-bytes
cppo >= 1.1.0
ocamlbuild
ocamlfind
Published Jul 19, 2016
Source [http] http://github.com/OCamlPro/ocplib-endian/archive/1.0.tar.gz
74b45ba33e189283170a748c2a3ed477
Statistics Installed 2827 times in last month.
Edit https://github.com/ocaml/opam-repository/tree/master/packages/ocplib-endian/ocplib-endian.1.0/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;