get Or Else
inline fun ByteBuffer.getOrElse(index: Int, defaultValue: (Int) -> Byte): Byte
Content copied to clipboard
inline fun ShortBuffer.getOrElse(index: Int, defaultValue: (Int) -> Short): Short
Content copied to clipboard
inline fun IntBuffer.getOrElse(index: Int, defaultValue: (Int) -> Int): Int
Content copied to clipboard
inline fun LongBuffer.getOrElse(index: Int, defaultValue: (Int) -> Long): Long
Content copied to clipboard
inline fun FloatBuffer.getOrElse(index: Int, defaultValue: (Int) -> Float): Float
Content copied to clipboard
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this buffer.