FreeBSD.software
Home/devel/ocaml-cstruct

ocaml-cstruct

6.2.0_2devel

OCaml library and syntax extension to access C-like structures

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!).

$pkg install ocaml-cstruct
github.com/mirage/ocaml-cstruct
Origin
devel/ocaml-cstruct
Size
15.1MiB
License
ISCL
Maintainer
freebsd@dev.thsi.be
Dependencies
5 packages
Required by
1 packages

Dependencies (5)

Required By (1)