Module Omod_support.Codec
Value serializers.
The underlying implementation uses Marshal with magic numbers that depend on omod and OCaml's versions.
val v : id:string -> 'a tv ~idis a new codec with identifierid(part of the magic number).
val write : 'a t -> Omod.fpath -> 'a -> (unit, string) Stdlib.resultwrite c file vwrites valuevtofileusing codecc.
val read : 'a t -> Omod.fpath -> ('a, string) Stdlib.resultread c filereads a value fromfileusing codecc.