-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does cstruct provides marshaling to/from a char bigarray (bigstring)? #310
Comments
Does https://github.com/mirage/ocaml-cstruct/blob/main/lib/cstruct.mli#L178 |
I don't think so. val Marshal.to_buffer
bytes -> int -> int -> 'a -> Stdlib__Marshal.extern_flags list -> int but instead of bytes we would have a bigstring. val Marshal.from_bytes bytes -> int -> 'a with also bytes replaced by bigstring. |
Sorry, I think I needed another cup of coffee :-) I found that there are C symbols |
I know some related code in parmap, if you are interested: |
It's worth noting that |
The problem with bytes is that they cannot be memory mapped, as far as I know. |
It would be nice to have such a functionality.
Since bigarrays are the only thing that can be memory mapped on unices.
The text was updated successfully, but these errors were encountered: