| Anonymous | Login | Signup for a new account | 2013-05-20 02:16 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0004987 | OCaml | OCaml otherlibs | public | 2010-02-26 21:47 | 2012-06-21 20:16 | ||||||
| Reporter | goswin | ||||||||||
| Assigned To | |||||||||||
| Priority | normal | Severity | feature | Reproducibility | always | ||||||
| Status | acknowledged | Resolution | open | ||||||||
| Platform | OS | OS Version | |||||||||
| Product Version | 3.11.2 | ||||||||||
| Target Version | Fixed in Version | ||||||||||
| Summary | 0004987: caml/bigarray.h should export more | ||||||||||
| Description | For libfuse-ocaml bindings I need to pass a buffer to a callback to ocaml. The complication is that, since the buffer is part of a larger request, it is in the middle of an allocated chunk of memory. Luckily ocaml can already handle this case nicely in the form of Bigarrays. In ocaml using "Bigarray.Array1.sub full_request offset length" I can create a subset of the full array without having to copy the data. But this can not be used in C stubs as caml/bigarray.h does not export the API for proxy objects or the function to create sub arrays. For my use case it would be enough to add CAMLprim value caml_ba_sub(value vb, value vofs, value vlen); to caml/bigarray.h. But for completness the proxy struct should probably be exported as well as a helper function to savely free a bigarray (in case of Bigarrays not under GC control). MfG Goswin | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2010-02-26 21:47 | goswin | New Issue | |
| 2011-06-01 14:32 | doligez | Status | new => acknowledged |
| 2012-06-21 20:16 | frisch | Category | OCaml general => OCaml otherlibs |
| Copyright © 2000 - 2011 MantisBT Group |