Module B0_std.Bincode

type !'a enc = Buffer.t -> 'a -> unit
type !'a dec = string -> int -> int * 'a
val err : int -> ('a, Format.formatter, unit, 'b) format4 -> 'a
val err_byte : kind:string -> int -> int -> 'a
val get_byte : string -> int -> int
val dec_eoi : string -> int -> unit
type 'a t
val v : 'a enc -> 'a dec -> 'a t
val enc : 'a t -> 'a enc
val dec : 'a t -> 'a dec
val to_string : ?buf:Buffer.t -> 'a t -> 'a -> string
val of_string : ?file:Fpath.t -> 'a t -> string -> ('a, string) result
val enc_magic : string -> unit enc
val dec_magic : string -> unit dec
val magic : string -> unit t
val enc_byte : int enc
val dec_byte : kind:string -> int dec
val byte : kind:string -> int t
val enc_unit : unit enc
val dec_unit : unit dec
val unit : unit t
val enc_bool : bool enc
val dec_bool : bool dec
val bool : bool t
val enc_int : int enc
val dec_int : int dec
val int : int t
val enc_int64 : int64 enc
val dec_int64 : int64 dec
val int64 : int64 t
val enc_string : string enc
val dec_string : string dec
val string : string t
val enc_fpath : Fpath.t enc
val dec_fpath : Fpath.t dec
val fpath : Fpath.t t
val enc_list : 'a enc -> 'a list enc
val dec_list : 'a dec -> 'a list dec
val list : 'a t -> 'a list t
val enc_option : 'a enc -> 'a option enc
val dec_option : 'a dec -> 'a option dec
val option : 'a t -> 'a option t
val enc_result : ok:'a enc -> error:'b enc -> ('a, 'b) result enc
val dec_result : ok:'a dec -> error:'b dec -> ('a, 'b) result dec
val result : ok:'a t -> error:'b t -> ('a, 'b) result t
val enc_set : (module Set.S with type elt = 'a and type t = 'set) -> 'a enc -> 'set enc
val dec_set : (module Set.S with type elt = 'a and type t = 'set) -> 'a dec -> 'set dec
val set : (module Set.S with type elt = 'a and type t = 'set) -> 'a t -> 'set t
val enc_hash : Hash.t enc
val dec_hash : Hash.t dec
val hash : Hash.t t
val enc_time_span : Mtime.span enc
val dec_time_span : Mtime.span dec
val time_span : Mtime.span t
val enc_cpu_time_span : Os.Cpu.Time.span enc
val dec_cpu_time_span : Os.Cpu.Time.span dec
val cpu_time_span : Os.Cpu.Time.span t