devel/ocaml-cstruct 6.2.0_2 DragonFly
OCaml library and syntax extension to access C-like structures
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ISCL
- Categories
- devel
- Package size
- 3430.4 KiB, 15279.0 KiB installed
Description
This library for OCaml contains functionnality to access datastructures using a determined byte-layouts such as networking datagrams or binay file formats (e.g.).
A PPX syntax extension is provided to allow the definition of byte-layouts in the form of "cstruct" type definitions -- looking much alike the well-known structure declaration of the C programming language (hence the name of this library) --, and to generate accessor functions to manipule its members.
In addition to those core features, the library contains accessory functions allowing:
-
The representation of "cstruct" as S-expression;
-
I/O operations over the Unix OCaml library and the Lwt cooperative threading library. The async integration is currently not provided by this port (patch welcome!).
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/ocaml-cstruct | 6.2.0_2 |
| FreeBSD | devel/ocaml-cstruct | 6.2.0_2 |
| NetBSD | devel/ocaml-cstruct | 6.1.0nb2 |
| GhostBSD | devel/ocaml-cstruct | 6.2.0_2 |
Install
Binary package:
pkg install ocaml-cstruct
From DPorts:
cd /usr/dports/devel/ocaml-cstruct && make install clean