Home
last modified time | relevance | path

Searched refs:globalStartIndex (Results 1 – 4 of 4) sorted by relevance

/tools/trebuchet/core/common/src/main/kotlin/trebuchet/io/
DStreamingReader.kt39 if (window.globalStartIndex <= i && window.globalEndIndex >= i) { in get()
61 if (startIndex <= win.globalStartIndex) { in iter()
64 yield(win.slice.slice((startIndex - win.globalStartIndex).toInt())) in iter()
88 if (windows.size > 2 && endIndex - windows[1].globalStartIndex > keepLoadedSize) { in addBuffer()
91 startIndex = windows[0].globalStartIndex in addBuffer()
98 class Window(val slice: DataSlice, val globalStartIndex: Long, val globalEndIndex: Long) { constant in trebuchet.io.Window
100 inline operator fun get(i: Long): Byte = slice[(i - globalStartIndex).toInt()] in get()
DStreamingLineReader.kt65 yield(window.slice.slice((lineStartIndex - window.globalStartIndex).toInt(), in <lambda>()
66 (lineEndIndexInclusive - window.globalStartIndex + 1).toInt())) in <lambda>()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DStringSearch.kt168 …private fun findInWindow(window: StreamingReader.Window, globalStartIndex: Long, globalEndIndex: L… in findInWindow()
169 var index = (globalStartIndex - window.globalStartIndex).toInt() in findInWindow()
171 … val endIndex = (minOf(window.globalEndIndex, globalEndIndex) - window.globalStartIndex).toInt() in findInWindow()
184 return index + window.globalStartIndex in findInWindow()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/extractors/
DSystraceExtractor.kt64 if (window.globalEndIndex >= startIndex && window.globalStartIndex < endIndex) { in <lambda>()
65 if (window.globalStartIndex >= startIndex && window.globalEndIndex <= endIndex) { in <lambda>()
68 val sliceStart = maxOf(startIndex - window.globalStartIndex, 0) in <lambda>()
69 val sliceEnd = minOf(endIndex, window.globalEndIndex) - window.globalStartIndex in <lambda>()