slice

fun ByteBuffer.slice(indices: IntRange): ByteBuffer
fun ShortBuffer.slice(indices: IntRange): ShortBuffer
fun IntBuffer.slice(indices: IntRange): IntBuffer
fun LongBuffer.slice(indices: IntRange): LongBuffer
fun FloatBuffer.slice(indices: IntRange): FloatBuffer
fun DoubleBuffer.slice(indices: IntRange): DoubleBuffer
fun CharBuffer.slice(indices: IntRange): CharBuffer

Returns a list containing elements at indices in the specified indices range.