allocArray

Native
1.3
fun < reified T : CVariable > NativePlacement . allocArray (
length : Long
) : CArrayPointer < T >

(source)
fun < reified T : CVariable > NativePlacement . allocArray (
length : Int
) : CArrayPointer < T >

(source)

Allocates C array of given elements type and length.

Parameters

T - must not be abstract

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

(source)
inline fun < reified 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.

Parameters

T - must not be abstract