capnp-ocaml
capnp-ocaml copied to clipboard
Using Bigarray as message storage
The README mentions using Bigarray as message storage, but I haven't been able to find any examples in this repo or elsewhere. I've implemented a module using Bigstring
which satisfies Capnp.MessageSig.S
, but it's still not clear to me how to serialize/unserialize in a zero-copy fashion, e.g. using Writer
and Reader
from Async. If you can point to any examples of using Capnp with Bigarray, I would appreciate it.
Thanks 🙏