Skip to content

Releases: ocaml-attic/ocaml-cstruct

Add `to_bigarray`

20 Feb 23:32
Compare
Choose a tag to compare

Add a (sadly rather slow but sometimes necessary) function to convert a Cstruct back into a Bigarray slice of the right length and offset.

Bug fix for Cstruct.shift

09 Dec 10:49
Compare
Choose a tag to compare
v1.0.1

bump to 1.01

First stable release

05 Dec 23:51
Compare
Choose a tag to compare

Documentation and bounds checking improvements

More permissive grammar, and variable length buffers

07 Nov 19:21
Compare
Choose a tag to compare

0.8.1 (2013-11-06):

  • Trailing semicolons are allowed in cstruct field definitions.
  • Buffer elements can be any primitive integer, not just uint8.

bug fixes, Travis and hexdump pretty printing

14 Oct 16:39
Compare
Choose a tag to compare

0.8.0 (13-Oct-2013):

  • Improved ocamldoc for BE/LE modules.
  • Add Travis-CI test scripts and fix test.sh script compilation.
  • Support int32/int64 constant values in cenum like VAL = 0xffffffffl, useful for 32-bit hosts.
  • Check and raise error in case of negative offsets for blits (#4).
  • Correctly preserve the sequence after a constant constructor is set during a cenum definition.
  • Do not repeat the sizeof_<field> binding for every get/set field (should be no externally observable change).
  • Add Cstruct.hexdump_to_buffer to make spooling hexdump output easier.
  • Generate hexdump_foo and hexdump_foo_to_buffer prettyprinting functions for a cstruct foo.