package metadata
Module Metadata.ReaderSource
Abstractions for reading from various sources.
Source
type t = {read : bytes -> int -> int -> int;read_ba : (int -> (char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t) option;custom_parser : custom_parser option;seek : int -> unit;size : unit -> int option;reset : unit -> unit;
}A function to read taking the buffer to fill the offset and the length and returning the number of bytes actually read.
Specialize a parser to operate on files.