ArenaBase
Since Kotlin
1.3Inheritors
Functions
Link copied to clipboard
Since Kotlin 1.3
Link copied to clipboard
Allocates variable of given type.
Since Kotlin 1.3
Allocates variable with given value type and initializes it with given value.
Since Kotlin 1.3
Allocates variable of given type and initializes it applying given block.
Since Kotlin 1.3
Link copied to clipboard
Allocates C array of given elements type and length.
Since Kotlin 1.3
inline fun <T : CVariable> NativePlacement.allocArray(length: Int, initializer: T.(index: Int) -> Unit): CArrayPointer<T>
inline fun <T : CVariable> NativePlacement.allocArray(length: Long, initializer: T.(index: Long) -> Unit): CArrayPointer<T>
Allocates C array of given elements type and length, and initializes its elements applying given block.
Since Kotlin 1.3
Link copied to clipboard
inline fun <T : CPointer<*>> NativePlacement.allocArrayOf(vararg elements: T?): CArrayPointer<CPointerVarOf<T>>
inline fun <T : CPointer<*>> NativePlacement.allocArrayOf(elements: List<T?>): CArrayPointer<CPointerVarOf<T>>
Allocates C array of given values.
Since Kotlin 1.3
Since Kotlin 1.3
Link copied to clipboard
fun <T : CPointed> NativePlacement.allocArrayOfPointersTo(vararg elements: T?): CPointer<CPointerVarOf<CPointer<T>>>
fun <T : CPointed> NativePlacement.allocArrayOfPointersTo(elements: List<T?>): CArrayPointer<CPointerVar<T>>
Allocates C array of pointers to given elements.
Since Kotlin 1.3
Link copied to clipboard
Since Kotlin 1.3