package irmin

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

Overlay on top of Jsonm to work with rewindable streams.

type decoder

The type for JSON decoder.

val decoder : ?encoding:[< Jsonm.encoding ] -> [< Jsonm.src ] -> decoder

Same as Jsonm.decoder.

val decode : decoder -> [> `Await | `End | `Error of Jsonm.error | `Lexeme of Jsonm.lexeme ]

Same as decode.

val rewind : decoder -> Jsonm.lexeme -> unit

rewind d l rewinds l on top of the current state of d. This allows to put back lexemes already seen.

OCaml

Innovation. Community. Security.