Module Helper.Decoder

Parameters

module D : DECODER
module FS : sig ... end

Signature

type error = [
| `Decoder of D.error
| FS.error Error.FS.t
]
val of_file : FS.t -> Fpath.t -> Cstruct.t -> D.decoder -> (D.terror) Stdlib.result Lwt.t

of_file t f tmp state decodes from the file f a value using state and tmp as intermediary buffer.