Home
last modified time | relevance | path

Searched refs:DataSlice (Results 1 – 18 of 18) sorted by relevance

/tools/trebuchet/core/common/src/main/kotlin/trebuchet/io/
DDataSlice.kt19 data class DataSlice(var buffer: ByteArray, dataClass
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
DStreamingReader.kt58 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) {
DBufferProducer.kt20 fun next(): DataSlice? in next()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DBufferReader.kt21 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()
DStringCache.kt19 import trebuchet.io.DataSlice
24 private val cache: MutableMap<DataSlice, String> = HashMap(1_000)
26 fun stringFor(slice: DataSlice): String { in stringFor()
DByteArrayList.kt19 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/
DFtraceLine.kt19 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/importers/ftrace/events/
DEventParserState.kt21 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()
DFtraceEvent.kt20 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/
DSystraceExtractor.kt38 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>()
DZlibExtractor.kt76 override fun next(): DataSlice? { in next()
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/extractors/
DSystraceExtractorTest.kt22 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/main/kotlin/trebuchet/extras/
DStreamAdapter.kt20 import trebuchet.io.DataSlice
35 override fun next(): DataSlice? { in next()
45 return DataSlice(buffer, 0, read) in next()
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/testutils/
DStringToStreamAdapter.kt20 import trebuchet.io.DataSlice
28 override fun next(): DataSlice? { in makeReader()
/tools/trebuchet/trebuchet/startup-common/test/
DStartupCommonTests.kt22 import trebuchet.io.DataSlice
32 override fun next(): DataSlice? { in parseString()
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/
DTraceViewerWindow.kt22 import trebuchet.io.DataSlice in <lambda>()
73 override fun next(): DataSlice? { in <lambda>()
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/task/
DImportTaskTest.kt24 import trebuchet.io.DataSlice in <lambda>()
90 override fun next(): DataSlice? { in <lambda>()
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/io/
DStringStreamTest.kt72 override fun next(): DataSlice? { in readFile()