package cstruct

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

Install

Dune Dependency

Authors

Maintainers

Sources

v1.0.1.tar.gz
md5=74cccbaf30c34924ab1a6883a8249388

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: 09 Dec 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.10.0"
  12. conduit >= "0.6.0" & < "0.15.2"
  13. conduit-async = "3.0.0"
  14. conduit-lwt = "3.0.0"
  15. cowabloga >= "0.0.5"
  16. crc
  17. crunch >= "2.0.0" & < "3.0.0"
  18. cstruct-lwt < "3.0.0"
  19. cstruct-unix < "3.0.0"
  20. datakit-ci >= "0.10.0" & < "0.12.4"
  21. datakit-client < "0.9.0"
  22. datakit-server < "0.9.0"
  23. depyt < "0.3.0"
  24. dns >= "0.8.0" & < "0.18.0"
  25. dream < "1.0.0~alpha2"
  26. duff < "0.3"
  27. fat-filesystem < "0.11.0"
  28. frenetic < "2.0.0" | >= "3.2.0" & < "5.0.5"
  29. git >= "1.4.3" & < "1.6.0" | >= "2.0.0" & < "3.0.0"
  30. git-http < "1.11.0"
  31. git-mirage = "1.11.0"
  32. github-hooks >= "0.2.0"
  33. gluten-mirage < "0.3.0"
  34. gpt
  35. h2-mirage
  36. hacl-star >= "0.7.0"
  37. hvsock < "1.0.0"
  38. io-page < "1.4.0"
  39. io-page-unix < "2.0.0"
  40. io-page-xen < "2.0.0"
  41. ipaddr-cstruct < "5.2.0"
  42. irmin >= "0.9.0" & < "0.10.0"
  43. irmin-git >= "2.3.0"
  44. iso-filesystem
  45. launchd
  46. letsencrypt = "0.2.5"
  47. letsencrypt-app < "0.4.0"
  48. macaddr-cstruct < "5.2.0"
  49. mbr-format < "1.0.0"
  50. metrics-mirage
  51. mirage >= "0.7.2" & < "0.9.1" | >= "0.10.0" & < "2.4.0"
  52. mirage-block < "1.0.0"
  53. mirage-block-ccm < "1.1.0"
  54. mirage-block-ramdisk
  55. mirage-block-solo5 < "0.6.2"
  56. mirage-block-unix < "2.3.0"
  57. mirage-block-xen < "1.4.0"
  58. mirage-channel-lwt
  59. mirage-clock-unix < "1.0.0"
  60. mirage-clock-xen < "1.0.0"
  61. mirage-conduit = "2.3.1"
  62. mirage-console-solo5 >= "0.2.0"
  63. mirage-console-unix < "2.3.2"
  64. mirage-console-xen = "4.0.0"
  65. mirage-console-xen-backend >= "2.3.2" & < "2.3.4" | = "4.0.0"
  66. mirage-console-xen-cli
  67. mirage-dns < "2.6.0"
  68. mirage-entropy < "0.5.0"
  69. mirage-flow < "1.2.0"
  70. mirage-flow-rawlink >= "1.1.0"
  71. mirage-fs >= "0.4.0" & < "1.0.0"
  72. mirage-fs-mem
  73. mirage-fs-unix < "1.1.3"
  74. mirage-kv-lwt >= "2.0.0"
  75. mirage-nat < "2.2.4"
  76. mirage-net = "0.5.2"
  77. mirage-net-lwt
  78. mirage-net-solo5
  79. mirage-net-unix < "2.3.0"
  80. mirage-net-xen < "1.5.0"
  81. mirage-profile < "0.7.0"
  82. mirage-qubes < "0.3"
  83. mirage-solo5
  84. mirage-tc
  85. mirage-tcpip-unix
  86. mirage-tcpip-xen
  87. mirage-unix < "3.0.8"
  88. mirage-vnetif < "0.4.0"
  89. mirage-www < "0.4.0" | >= "1.1.0"
  90. mirage-xen
  91. monorobot
  92. mrt-format
  93. mstruct < "1.3.1"
  94. nbd >= "0.9.2" & < "2.1.0"
  95. noise
  96. openflow
  97. ox < "1.1.1"
  98. packet
  99. pbkdf = "1.1.0"
  100. pcap-format = "0.3.3"
  101. pcf-format
  102. ppx_cstruct < "3.0.1"
  103. protocol-9p < "0.5.1"
  104. protocol-9p-tool = "0.12.0" | >= "2.0.0" & < "2.0.2"
  105. qcow < "0.11.0"
  106. qcow-format
  107. qcow-tool
  108. rawlink < "0.4"
  109. resp-mirage = "0.10.0"
  110. sendmail >= "0.4.1" & < "0.5.0"
  111. shared-block-ring < "2.3.0"
  112. shared-memory-ring < "1.2.0"
  113. slack
  114. ssh-agent
  115. tar-format >= "0.2.0" & < "0.5.0"
  116. tcpip < "2.7.0"
  117. tftp
  118. u2f = "0.1.1"
  119. vchan < "2.1.0"
  120. vhd-format < "0.8.0"
  121. vhd-format-lwt
  122. vhd-tool
  123. websocket = "2.2"
  124. xapi-rrd-transport
  125. xe
  126. xen-api-client >= "0.9.6"
  127. xen-block-driver >= "0.2.5"
  128. xen-gnt
  129. xenstore >= "1.2.0" & < "1.3.0"
  130. xentropyd

Conflicts (1)

  1. async >= "v0.10.0"
OCaml

Innovation. Community. Security.