All Projects → OCamlPro → ocplib-endian

OCamlPro / ocplib-endian

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

Programming Languages

ocaml
1615 projects
Makefile
30231 projects

ocplib-endian

Optimised functions to read and write int16/32/64 from strings, bytes and bigarrays, based on 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;

= Hacking =

The tests only pass in dune release profile. The debug mode prevents cross module inlining, which prevents unboxing in the tests.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].