package cstruct

  1. Overview
  2. Docs
access C structures via a camlp4 extension

Install

Dune Dependency

Authors

Maintainers

Sources

v0.8.1.tar.gz
sha256=3d73cbd88fd8e8238e90e065c861c11e449aef99129c3291f3854020f2ca29ec
md5=3b48bbbd966c0a2da15914109ff0d0c3

Description

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

Tags

org:mirage org:xapi-project

Published: 21 Nov 2013

Dependencies (5)

  1. ocamlbuild build & != "0.9.0"
  2. camlp4
  3. ocplib-endian
  4. ocamlfind
  5. ocaml < "4.06.0"

Dev Dependencies

None

  1. albatross < "1.3.0"
  2. angstrom < "0.7.0"
  3. asn1-combinators = "0.2.0"
  4. balancer
  5. buffer-pool
  6. capnp-rpc-net >= "1.1" & < "1.2.1"
  7. channel
  8. charrua-client < "0.9"
  9. charrua-core < "0.3"
  10. charrua-unix < "0.3" | = "0.6"
  11. cohttp >= "0.9.7" & < "0.9.13"
  12. conduit-async = "3.0.0"
  13. conduit-lwt = "3.0.0"
  14. crunch >= "2.0.0" & < "3.0.0"
  15. cstruct-lwt < "3.0.0"
  16. cstruct-unix < "3.0.0"
  17. datakit-ci >= "0.10.0" & < "0.12.4"
  18. datakit-client < "0.9.0"
  19. datakit-server < "0.9.0"
  20. depyt < "0.3.0"
  21. dns >= "0.6.0" & < "0.8.0"
  22. dream < "1.0.0~alpha2"
  23. duff < "0.3"
  24. fat-filesystem < "0.7.0"
  25. frenetic < "2.0.0"
  26. git >= "1.4.3" & < "1.6.0" | >= "2.0.0" & < "3.0.0"
  27. git-http < "1.11.0"
  28. git-mirage = "1.11.0"
  29. github-hooks >= "0.2.0"
  30. gluten-mirage < "0.3.0"
  31. gpt
  32. h2-mirage
  33. hacl-star >= "0.7.0"
  34. httpun-mirage
  35. httpun-ws-mirage
  36. hvsock < "1.0.0"
  37. io-page-unix < "2.0.0"
  38. io-page-xen < "2.0.0"
  39. ipaddr-cstruct < "5.2.0"
  40. irmin = "0.9.0"
  41. irmin-git >= "2.3.0"
  42. launchd < "1.3"
  43. letsencrypt = "0.2.5"
  44. letsencrypt-app < "0.4.0"
  45. macaddr-cstruct < "5.2.0"
  46. metrics-mirage
  47. mirage >= "0.7.2" & < "0.9.1"
  48. mirage-block < "1.0.0"
  49. mirage-block-ramdisk
  50. mirage-block-unix < "1.2.1"
  51. mirage-block-xen < "1.0.0"
  52. mirage-channel-lwt
  53. mirage-clock-unix < "1.0.0"
  54. mirage-clock-xen < "1.0.0"
  55. mirage-console-solo5 >= "0.2.0"
  56. mirage-console-unix < "2.3.2"
  57. mirage-console-xen = "4.0.0"
  58. mirage-console-xen-backend >= "2.3.2" & < "2.3.4" | = "4.0.0"
  59. mirage-console-xen-cli
  60. mirage-entropy < "0.5.0"
  61. mirage-flow < "1.2.0"
  62. mirage-flow-rawlink >= "1.1.0"
  63. mirage-fs >= "0.4.0" & < "1.0.0"
  64. mirage-fs-mem
  65. mirage-fs-unix < "1.1.3"
  66. mirage-kv-lwt >= "2.0.0"
  67. mirage-nat < "2.2.4"
  68. mirage-net = "0.5.2"
  69. mirage-net-lwt
  70. mirage-net-unix < "1.1.0"
  71. mirage-profile < "0.7.0"
  72. mirage-qubes < "0.3"
  73. mirage-tc
  74. mirage-unix < "0.9.9"
  75. mirage-vnetif < "0.4.0"
  76. mirage-www < "0.4.0"
  77. mirage-xen < "0.9.9"
  78. monorobot
  79. nbd = "0.9.2"
  80. noise
  81. openflow < "0.3.0"
  82. ox < "1.1.0"
  83. packet < "0.2.1"
  84. pbkdf = "1.1.0"
  85. pcap-format = "0.3.3"
  86. pcf-format
  87. ppx_cstruct < "3.0.1"
  88. protocol-9p < "0.5.1"
  89. protocol-9p-tool = "0.12.0" | >= "2.0.0" & < "2.0.2"
  90. qcow < "0.11.0"
  91. qcow-format
  92. qcow-tool
  93. resp-mirage = "0.10.0"
  94. sendmail >= "0.4.1" & < "0.5.0"
  95. shared-block-ring < "2.3.0"
  96. shared-memory-ring < "1.2.0"
  97. slack
  98. ssh-agent
  99. tar-format >= "0.2.0" & < "0.5.0"
  100. tuntap = "0.5"
  101. u2f = "0.1.1"
  102. vchan < "0.9.6"
  103. vhd-format < "0.7.0"
  104. vhd-format-lwt
  105. vhd-tool < "0.7.1"
  106. websocket = "2.2"
  107. xapi-rrd-transport
  108. xe
  109. xen-block-driver >= "0.2.5"
  110. xenstore >= "1.2.0" & < "1.3.0"
  111. xentropyd

Conflicts (1)

  1. async >= "v0.10.0"
OCaml

Innovation. Community. Security.