package containers

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

Decoder that just blocks when input is not available

  • since 0.14

Decoder

val make : ?bufsize:int -> (Bytes.t -> int -> int -> int ID_MONAD.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

Parse the next S-expression or return an error if the input isn't long enough or isn't a proper S-expression