ocaml-stdint icon indicating copy to clipboard operation
ocaml-stdint copied to clipboard

Bigarrays

Open braibant opened this issue 8 years ago • 1 comments

With the current API, one can store all flavor of ints inside regular OCaml arrays, but this means that one loose a lot of bits when using, e.g., arrays of uint16, and I imagine that {u,}int128 are boxed.

Do you have plans to support more compact structures, in a bigarray like fashion?

braibant avatar Apr 04 '16 08:04 braibant

I need stdint for binary protocol implementations, so I don't plan to integrate this feature. But I suppose there is no reason to not have something like this in the library. Maybe this can be easily implemented on top of Bigarray.

mwweissmann avatar Apr 26 '16 18:04 mwweissmann