sliceArray

fun ByteBuffer.sliceArray(indices: Collection<Int>): ByteArray

rray containing elements of this array at specified indices.

fun ShortBuffer.sliceArray(indices: Collection<Int>): ShortArray
fun IntBuffer.sliceArray(indices: Collection<Int>): IntArray
fun LongBuffer.sliceArray(indices: Collection<Int>): LongArray
fun FloatBuffer.sliceArray(indices: Collection<Int>): FloatArray
fun DoubleBuffer.sliceArray(indices: Collection<Int>): DoubleArray
fun CharBuffer.sliceArray(indices: Collection<Int>): CharArray

Returns an array containing elements of this array at specified indices.

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

Returns an array containing elements at indices in the specified indices range.