W3cubDocs

/Kotlin

getPointer

Platform and version requirements: Native (1.3)
fun getPointer(scope: AutofreeScope): CPointer<T>

If this reference is CPointer, returns this pointer, otherwise allocate storage value in the scope and return it.

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlinx.cinterop/-c-pointer/get-pointer.html