Versions in this module Expand all Collapse all v1 v1.1.0 Aug 22, 2024 Changes in this version + func Scan(haystack LengthIter, needle Extent, callback Callback) bool + func ScanConsecutive(haystack ConsecutiveExtentIter, needle Extent, callback Callback) bool + type Callback = func(segmentIndex int, segmentBounds Extent) bool + type ConsecutiveExtentIter = func() (Extent, bool) + type Extent struct + Length Int + Start Int + func (e Extent) End() Int + type Index struct + func NewIndex(segments LengthIter) (ret Index) + func NewIndexFromSegments(segments []Extent) Index + func (me Index) Locate(e Extent, output Callback) bool + type Int = int64 + type Length = Int + type LengthIter = func() (Length, bool) + type Locater func(Extent, Callback) bool + func LocaterFromLengthIter(li LengthIter) Locater