Edgar A
2016-09-25 08:03:48 UTC
Greetings,
I have some C values that I want to get over to the OCaml side using the FFI.
Specifically I have `uint32_t`, `intptr_t` and `int32_t` and I’m not sure how to get it over to the OCaml side correctly.
Would the uint32_t be expressed as a Int32.t? Do I really need to put an integer as block just to get it to the OCaml side, because of the 31 bit integers on the OCaml side right?
Been looking for examples but can’t find any, example code greatly appreciated, the C side and the ml side please.
Thank you,
Edgar (Algebr)
I have some C values that I want to get over to the OCaml side using the FFI.
Specifically I have `uint32_t`, `intptr_t` and `int32_t` and I’m not sure how to get it over to the OCaml side correctly.
Would the uint32_t be expressed as a Int32.t? Do I really need to put an integer as block just to get it to the OCaml side, because of the 31 bit integers on the OCaml side right?
Been looking for examples but can’t find any, example code greatly appreciated, the C side and the ml side please.
Thank you,
Edgar (Algebr)
--
Caml-list mailing list. Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
Caml-list mailing list. Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs