yallop / ocaml-ctypes

Library for binding to C libraries using pure OCaml
MIT License
369 stars 95 forks source link

Add support for unsafe ocaml arguments. #607

Closed toots closed 4 years ago

toots commented 5 years ago

If I'm not mistaken, it should be possible to:

This PR adds this possibility by introducing ocaml_unsafe_{string,bytes} (and the yet unexposed ocaml_unsafe_float_array).

Let me know what you think!