Module Event_log.Reader

Read-only iterator over a log file.

type t
exception Bad_magic of int32
exception Bad_version of int32
val open_ : string -> t
val close : t -> unit
val record_count : t -> int64
val iter : t -> (Event_types.Event.t -> unit) -> int

iter t f calls f on every event in order. Stops cleanly on EOF or the first bad CRC (without raising). Returns the number of events successfully delivered.