Functor CCSexpM.MakeDecode

module MakeDecode (M : MONAD) : sig .. end
Parameters:
M : MONAD

type t 
Decoder
val make : ?bufsize:int -> (Bytes.t -> int -> int -> int M.t) -> t
Make a decoder with the given function used to refill an internal buffer. The function might return 0 if the input is exhausted.
bufsize : size of internal buffer
val next : t -> CCSexpM.sexp CCSexpM.parse_result M.t
Parse the next S-expression or return an error if the input isn't long enough or isn't a proper S-expression