NativePlacement
Platform and version requirements: Native (1.3) 
interface NativePlacement
Functions
Platform and version requirements: Native (1.3) 
 
 alloc
abstract fun alloc(size: Long, align: Int): NativePointed
open fun alloc(size: Int, align: Int): NativePointed
Extension Functions
Platform and version requirements: Native (1.3)  
  
 
 alloc
Allocates variable of given type.
fun <T : CVariable> NativePlacement.alloc(): T
Allocates variable of given type and initializes it applying given block.
fun <T : CVariable> NativePlacement.alloc( initialize: T.() -> Unit ): T
Platform and version requirements: Native (1.3)  
  
 
 allocArray
Allocates C array of given elements type and length.
fun <T : CVariable> NativePlacement.allocArray( length: Long ): CArrayPointer<T>
fun <T : CVariable> NativePlacement.allocArray( length: Int ): CArrayPointer<T>
Allocates C array of given elements type and length, and initializes its elements applying given block.
fun <T : CVariable> NativePlacement.allocArray( length: Long, initializer: T.(index: Long) -> Unit ): CArrayPointer<T>
fun <T : CVariable> NativePlacement.allocArray( length: Int, initializer: T.(index: Int) -> Unit ): CArrayPointer<T>
Platform and version requirements: Native (1.3)  
 
 
 allocArrayOf
Allocates C array of given values.
fun <T : CPointer<*>> NativePlacement.allocArrayOf( vararg elements: T? ): CArrayPointer<CPointerVarOf<T>>
fun <T : CPointer<*>> NativePlacement.allocArrayOf( elements: List<T?> ): CArrayPointer<CPointerVarOf<T>>
fun NativePlacement.allocArrayOf( elements: ByteArray ): CArrayPointer<ByteVar>
fun NativePlacement.allocArrayOf( vararg elements: Float ): CArrayPointer<FloatVar>
Platform and version requirements: Native (1.3)  
 
 allocArrayOfPointersTo
Allocates C array of pointers to given elements.
fun <T : CPointed> NativePlacement.allocArrayOfPointersTo( elements: List<T?> ): CArrayPointer<CPointerVar<T>>
fun <T : CPointed> NativePlacement.allocArrayOfPointersTo( vararg elements: T? ): CArrayPointer<CPointerVar<T>>
Platform and version requirements: Native (1.3) 
 
 allocPointerTo
fun <T : CPointed> NativePlacement.allocPointerTo(): CPointerVar<T>
Inheritors
Platform and version requirements: Native (1.3) 
 
 AutofreeScope
abstract class AutofreeScope : DeferScope, NativePlacement
Platform and version requirements: Native (1.3) 
 
 NativeFreeablePlacement
interface NativeFreeablePlacement : NativePlacement
    © 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
    https://kotlinlang.org/api/latest/jvm/stdlib/kotlinx.cinterop/-native-placement/index.html