kotlin-stdlib / kotlinx.cinterop / CPointer / getPointer getPointer Native 1.3 fun getPointer(scope: AutofreeScope): CPointer<T>(source) If this reference is CPointer, returns this pointer, otherwise allocate storage value in the scope and return it.