take

fun ByteBuffer.take(n: Int): List<Byte>
fun ShortBuffer.take(n: Int): List<Short>
fun IntBuffer.take(n: Int): List<Int>
fun LongBuffer.take(n: Int): List<Long>
fun FloatBuffer.take(n: Int): List<Float>
fun DoubleBuffer.take(n: Int): List<Double>
fun CharBuffer.take(n: Int): List<Char>

Returns a list containing first n elements.

Samples

kool.buffers.Collections.Transformations.take

Throws