package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Parameters

module M : MONAD

Signature

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.

  • parameter bufsize

    size of internal buffer

val next : t -> sexp 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