cstruct 0.8.0
Author | Anil Madhavapeddy | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
License | ISC | |||||||||||||||||
Homepage | https://github.com/mirage/ocaml-cstruct | |||||||||||||||||
Maintainer | anil@recoil.org | |||||||||||||||||
Tags | org:mirage and org:xapi-project | |||||||||||||||||
Dependencies |
|
|||||||||||||||||
Optional dependencies |
|
|||||||||||||||||
Published | Oct 14, 2013 | |||||||||||||||||
Source [http] |
https://github.com/mirage/ocaml-cstruct/archive/v0.8.0.tar.gz c8b57db67fb69ddef2cebbf443353ece |
|||||||||||||||||
Edit | https://github.com/ocaml/opam-repository/tree/master/packages/cstruct/cstruct.0.8.0/opam |
access C structures via a camlp4 extension
Cstruct is a library and syntax extension to make it easier to access C-like structures directly from OCaml. It supports both reading and writing to these structures, and they are accessed via the Bigarray module.
An example pcap description is:
cstruct pcap_header { uint32_t magic_number; ( magic number *) uint16_t version_major; ( major version number ) uint16_t version_minor; ( minor version number ) uint32_t thiszone; ( GMT to local correction ) uint32_t sigfigs; ( accuracy of timestamps ) uint32_t snaplen; ( max length of captured packets, in octets ) uint32_t network ( data link type *) } as little_endian
Necessary for | ||
---|---|---|
cohttp | ||
& | >= 0.9.7 | |
< 0.9.13 | ||
dns | ||
& | >= 0.6.0 | |
< 0.8.0 | ||
frenetic | ||
< 2.0.0 | ||
mbr-format | ||
mirage | ||
< 0.9.1 | ||
mirage-clock-unix | ||
< 1.0.0 | ||
mirage-clock-xen | ||
< 1.0.0 | ||
mirage-fs | ||
>= 0.4.0 | ||
mirage-unix | ||
< 0.9.8 | ||
mirage-xen | ||
< 0.9.8 | ||
nbd | ||
& | >= 0.9.2 | |
< 1.0.1 | ||
openflow | ||
< 0.3.0 | ||
ox | ||
< 1.1.0 | ||
packet | ||
< 0.2.1 | ||
pcap-format | ||
>= 0.3.3 | ||
pcf-format | ||
shared-memory-ring | ||
tar-format | ||
>= 0.2.0 | ||
tuntap | ||
& | >= 0.5 | |
< 0.6 | ||
vhd-format | ||
< 0.7.0 | ||
vhd-tool | ||
< 0.7.1 | ||
xe | ||
xe-unikernel-upload | ||
xen-block-driver | ||
| | < 0.2.4 | |
>= 0.2.5 | ||
xenctrl | ||
>= 0.9.8 | ||
xenstore | ||
>= 1.2.0 | ||
Optional for | ||
mirage-types | ||
>= 1.1.0 |