kotlin-stdlib / kotlinx.cinterop / CValuesRef / getPointer getPointer Native 1.3 abstract 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.