findFirst

abstract fun findFirst(value: Byte, start: Int, end: Int = limit): Int

Scan through the buffer for first byte matching value.

Return

position of a match or -1

Parameters

value

to be match

start

inclusive initial position to start searching

end

exclusive final position of the search