File: README.md

package info (click to toggle)
ocplib-endian 1.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 252 kB
  • sloc: ml: 1,310; makefile: 16
file content (16 lines) | stat: -rw-r--r-- 825 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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](src/endianString.cppo.mli) works directly on strings, and provides submodules BigEndian and LittleEndian, with their unsafe counter-parts;
- [EndianBytes](src/endianBytes.cppo.mli) works directly on bytes, and provides submodules BigEndian and LittleEndian, with their unsafe counter-parts;
- [EndianBigstring](src/endianBigstring.cppo.mli) 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.