Pinned

Native
1.3
data class Pinned<out T : Any>

Functions

Native
1.3

get

Returns the underlying pinned object.

fun get(): T
Native
1.3

unpin

Disposes the handle. It must not be used after that.

fun unpin()

Extension Functions

Native
1.3

addressOf

fun Pinned<ByteArray>.addressOf(
    index: Int
): CPointer<ByteVar>
fun Pinned<ShortArray>.addressOf(
    index: Int
): CPointer<ShortVar>
fun Pinned<IntArray>.addressOf(index: Int): CPointer<IntVar>
fun Pinned<LongArray>.addressOf(
    index: Int
): CPointer<LongVar>
fun Pinned<UByteArray>.addressOf(
    index: Int
): CPointer<UByteVar>
fun Pinned<UShortArray>.addressOf(
    index: Int
): CPointer<UShortVar>
fun Pinned<UIntArray>.addressOf(
    index: Int
): CPointer<UIntVar>
fun Pinned<ULongArray>.addressOf(
    index: Int
): CPointer<ULongVar>
fun Pinned<FloatArray>.addressOf(
    index: Int
): CPointer<FloatVar>
fun Pinned<DoubleArray>.addressOf(
    index: Int
): CPointer<DoubleVar>