package ocplib-endian

  1. Overview
  2. Docs
Optimised functions to read and write int16/32/64 from strings and bigarrays

Install

Dune Dependency

Authors

Maintainers

Sources

1.2.tar.gz
md5=8d5492eeb7c6815ade72a7415ea30949
sha512=2e70be5f3d6e377485c60664a0e235c3b9b24a8d6b6a03895d092c6e40d53810bfe1f292ee69e5181ce6daa8a582bfe3d59f3af889f417134f658812be5b8b85

README.md.html

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.

OCaml

Innovation. Community. Security.