Module Imandrakit_ser_cbor

CBOR encoder/decoder for Imandrakit_ser

See the RFC.

exception Error of string
val encode : ?buf:Stdlib.Buffer.t -> t -> string
val decode : string -> (t, string) result
val decode_exn : string -> t

Like decode.

  • raises Error

    if the string isn't valid

val pp_diagnostic : t Imandrakit_common.Fmt.printer
val show_diagnostic : t -> string