/tools/trebuchet/core/common/src/main/kotlin/trebuchet/io/ |
D | DataSlice.kt | 19 data class DataSlice(var buffer: ByteArray, class 35 dest: DataSlice = DataSlice()): DataSlice { in get() 51 if (other !is DataSlice) return false in equals() 82 fun compact(): DataSlice { in toString() 86 return DataSlice(buffer.copyOfRange(startIndex, endIndex)) in toString() 90 fun ByteArray.asSlice(length: Int = this.size) = DataSlice(this, 0, length) in ByteArray() 91 fun String.asSlice() = DataSlice(this.toByteArray()) in ByteArray() 93 fun DataSlice.asText(): CharSequence { in ByteArray() method
|
D | StreamingReader.kt | 58 fun iter(startIndex: Long = 0L): Iterator<DataSlice> { in iter() 76 val notNullNextBuffer : DataSlice = nextBuffer in iter() 85 private fun addBuffer(buffer: DataSlice) { in addBuffer() 98 class Window(val slice: DataSlice, val globalStartIndex: Long, val globalEndIndex: Long) {
|
D | BufferProducer.kt | 20 fun next(): DataSlice? in next()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/ |
D | StringCache.kt | 19 import trebuchet.io.DataSlice 24 private val cache: MutableMap<DataSlice, String> = HashMap(1_000) 26 fun stringFor(slice: DataSlice): String { in stringFor()
|
D | BufferReader.kt | 21 import trebuchet.io.DataSlice 27 constructor() : this(DataSlice.EmptyBuffer, 0, 0) in isDigit() 103 fun slice(group: Int): DataSlice { in slice() 129 val tempSlice = DataSlice() 147 fun reset(slice: DataSlice, stringCache: StringCache?) { in reset() 154 …inline fun <T> read(slice: DataSlice, stringCache: StringCache? = null, init: BufferReader.() -> T… in read() 205 inline fun sliceTo(slice: DataSlice = DataSlice(), init: PreviewReader.() -> Unit): DataSlice { in sliceTo()
|
D | ByteArrayList.kt | 19 import trebuchet.io.DataSlice 53 fun put(slice: DataSlice) { in put() 57 fun reset(initialCapacity: Int = 10): DataSlice { in reset()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/ |
D | FtraceLine.kt | 19 import trebuchet.io.DataSlice 37 private var _function: DataSlice = DataSlice() 57 func: DataSlice, funcDetails: BufferReader) { in set() 78 fun create(line: DataSlice, stringCache: StringCache): FtraceLine? { in create() 108 fun parseLine_new(line: DataSlice, callback: (FtraceLine) -> Unit) = in parseLine_new() 124 fun parseLine(line: DataSlice, callback: (FtraceLine) -> Unit) = in parseLine()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/extras/ |
D | StreamAdapter.kt | 20 import trebuchet.io.DataSlice 35 override fun next(): DataSlice? { in next() 45 return DataSlice(buffer, 0, read) in next()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/events/ |
D | EventParserState.kt | 21 import trebuchet.io.DataSlice in <lambda>() 39 typealias EventDetailsParser = (state: EventParserState, slice: DataSlice) -> FtraceEventDetails? 104 inline fun ifMatches(matcher: Int, slice: DataSlice, result: MatchResult.() -> Unit): Boolean { in createEventParser() 109 fun detailsForText(funcName: CharSequence, detailsSlice: DataSlice): FtraceEventDetails { in createEventParser() 113 inline fun <T> readDetails(detailsSlice: DataSlice, init: BufferReader.() -> T): T { in createEventParser()
|
D | FtraceEvent.kt | 20 import trebuchet.io.DataSlice in <lambda>() 47 fun tryParseText(state: EventParserState, slice: DataSlice): FtraceEvent? { in <lambda>()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/extractors/ |
D | SystraceExtractor.kt | 38 val pipe = Pipe<DataSlice>() in <lambda>() 59 private class SubStream(val pipe: Pipe<DataSlice>) : BufferProducer { in <lambda>() 60 override fun next(): DataSlice? = pipe.next() in <lambda>() 63 private fun processWindow(window: StreamingReader.Window, pipe: Pipe<DataSlice>) { in <lambda>()
|
D | ZlibExtractor.kt | 76 override fun next(): DataSlice? { in next()
|
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/extractors/ |
D | SystraceExtractorTest.kt | 22 import trebuchet.io.DataSlice in <lambda>() 72 fun extract(list: Iterable<String>): List<DataSlice> { in <lambda>() 74 var output = mutableListOf<DataSlice>() in <lambda>() 90 override fun next(): DataSlice? { in <lambda>()
|
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/testutils/ |
D | StringToStreamAdapter.kt | 20 import trebuchet.io.DataSlice 28 override fun next(): DataSlice? { in makeReader()
|
/tools/trebuchet/trebuchet/startup-common/test/ |
D | StartupCommonTests.kt | 22 import trebuchet.io.DataSlice 32 override fun next(): DataSlice? { in parseString()
|
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/ |
D | TraceViewerWindow.kt | 22 import trebuchet.io.DataSlice in <lambda>() 73 override fun next(): DataSlice? { in <lambda>()
|
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/task/ |
D | ImportTaskTest.kt | 24 import trebuchet.io.DataSlice in <lambda>() 90 override fun next(): DataSlice? { in <lambda>()
|
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/io/ |
D | StringStreamTest.kt | 72 override fun next(): DataSlice? { in readFile()
|