allocArray

Allocates C array of given elements type and length.

Since Kotlin

1.3

Parameters

T

must not be abstract


inline fun <T : CVariable> NativePlacement.allocArray(length: Long, initializer: T.(index: Long) -> Unit): CArrayPointer<T>(source)
inline fun <T : CVariable> NativePlacement.allocArray(length: Int, initializer: T.(index: Int) -> Unit): CArrayPointer<T>(source)

Allocates C array of given elements type and length, and initializes its elements applying given block.

Since Kotlin

1.3

Parameters

T

must not be abstract