Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
PDF.RSourcetype t = {read : bytes -> int -> int -> int;read_ba : (int ->
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout)
Bigarray.Array1.t)
option;custom_parser : (Metadata__.MetadataBase.parser_handler -> unit) 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.
Make a reading function retry until buffer is filled (or an error occurs).
Reset state like after the file was just opened (position is at the beginning in particular).
Try to find a specific string starting from current position in the file.
Return the contents until we reach a specific string (not included).