toTypedArray

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

Returns a typed object buffer containing all of the elements of this direct primitive buffer.