avsm/ocaml-cstruct — pull request #13 by djs55 (2012-12-14 12:46:51+00:00)
Title: Interface change: allow fast blitting to and from strings

There was already a fast blit from a string, but the fast blit to a string wasn't exposed in the interface. Note I've renamed a function to try to make the interface look nicer, but this might break existing code.

I've also modified the build runes so it builds under mirage-xen without Lwt_unix.

Finally I fixed up the commented-out assertions in the blit functions: they now are all of the form
assert bytes-available-in-source <= length of blit requested
assert bytes-available-in-dest <= length of blit requested
-- is this better?