Mutable layer on top of ocaml-cstruct