indexOf

fun ByteBuffer.indexOf(element: Byte): Int
fun ShortBuffer.indexOf(element: Short): Int
fun IntBuffer.indexOf(element: Int): Int
fun LongBuffer.indexOf(element: Long): Int
fun FloatBuffer.indexOf(element: Float): Int
fun DoubleBuffer.indexOf(element: Double): Int
fun CharBuffer.indexOf(element: Char): Int

Returns first index of element, or -1 if the buffer does not contain element.