indexOf

fun indexOf(needle: ByteArray, from: Int = 0): Int

Find the FIRST occurrence of needle at or after from. Returns -1 if not found.