Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
AVI.RSourcetype t = {read : bytes -> int -> int -> int;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).