ocaml-stdint
ocaml-stdint copied to clipboard
Bigarrays
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?
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.