ocaml-ctypes
ocaml-ctypes copied to clipboard
ocaml_{bytes,string}_opt types
It would be nice to have ocaml_bytes_opt : Bytes.t option Ctypes_static.ocaml typ and ocaml_string_opt : string option Ctypes_static.ocaml typ so that null pointers can be passed in place of OCaml-managed buffer pointers. I don't think this is currently possible.