Irmin_pack_unix.Rangesval make : unit -> tmake () returns a new empty set of ranges.
val add : off:Optint.Int63.t -> len:int -> t -> unitadd ~off ~len t inserts the range (off, len) into t. When add is called multiple times sequentially, it is optimized for strictly decreasing offsets arguments.
val iter : (off:Optint.Int63.t -> len:Optint.Int63.t -> unit) -> t -> unititer fn t calls fn ~off ~len on every disjoint range (off, len) in the set t. The function fn ~off ~len is called with strictly increasing offsets. If two or more consecutive ranges (off,len) and (off+len,len') were added to the set t, a single call to fn will be performed on the englobing interval (off,len+len').
val count : t -> intcount t returns the number of adds performed on t.