Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Omod_support.CodecValue serializers.
The underlying implementation uses Marshal with magic numbers that depend on omod and OCaml's versions.
val v : id:string -> 'a tv ~id is a new codec with identifier id (part of the magic number).
val write : 'a t -> Omod.fpath -> 'a -> (unit, string) resultwrite c file v writes value v to file using codec c.
val read : 'a t -> Omod.fpath -> ('a, string) resultread c file reads a value from file using codec c.