alloc

Allocates variable of given type.

Since Kotlin

1.3

Parameters

T

must not be abstract


inline fun <T : CVariable> NativePlacement.alloc(initialize: T.() -> Unit): T(source)

Allocates variable of given type and initializes it applying given block.

Since Kotlin

1.3

Parameters

T

must not be abstract


fun <T : UByte> NativePlacement.alloc(value: T): UByteVarOf<T>(source)
fun <T : UShort> NativePlacement.alloc(value: T): UShortVarOf<T>(source)
fun <T : UInt> NativePlacement.alloc(value: T): UIntVarOf<T>(source)
fun <T : ULong> NativePlacement.alloc(value: T): ULongVarOf<T>(source)

Allocates variable with given value type and initializes it with given value.

Since Kotlin

1.3