elementAtOrNull

fun ByteBuffer.elementAtOrNull(index: Int): Byte?
fun ShortBuffer.elementAtOrNull(index: Int): Short?
fun IntBuffer.elementAtOrNull(index: Int): Int?
fun LongBuffer.elementAtOrNull(index: Int): Long?
fun FloatBuffer.elementAtOrNull(index: Int): Float?
fun DoubleBuffer.elementAtOrNull(index: Int): Double?
fun CharBuffer.elementAtOrNull(index: Int): Char?

Returns an element at the given index or null if the index is out of bounds of this buffer.