getExact

abstract fun <T> getExact(size: Int, arrayClass: Class<T>): T

Returns a non-null array of the given type with a length exactly equal to the given size.

If an array of the given size isn't in the pool, a new one will be allocated.

This class makes no guarantees about the contents of the returned array.

See also