https://github.com/ocamlpro/ocplib-endian
Optimised functions to read and write int16/32/64 from strings, bytes and bigarrays, based on primitives added in version 4.01.
https://github.com/ocamlpro/ocplib-endian
Last synced: about 1 year ago
JSON representation
Optimised functions to read and write int16/32/64 from strings, bytes and bigarrays, based on primitives added in version 4.01.
- Host: GitHub
- URL: https://github.com/ocamlpro/ocplib-endian
- Owner: OCamlPro
- License: other
- Created: 2012-11-12T17:12:26.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2022-06-27T13:28:11.000Z (about 4 years ago)
- Last Synced: 2024-04-07T17:25:09.379Z (over 2 years ago)
- Language: OCaml
- Homepage:
- Size: 218 KB
- Stars: 14
- Watchers: 5
- Forks: 22
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: COPYING.txt
Awesome Lists containing this project
README
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.