stdlib
1.6
1.8
1.7
1.6
1.5
1.4
1.3
1.2
1.1
1.0
Native
stdlib
/
kotlinx.cinterop
/
Pinned
Pinned
Native
data
class
Pinned
<
out
T
:
Any
>
(
source
)
Since Kotlin
1.3
Functions
Extensions
Functions
get
Link copied to clipboard
Native
fun
get
(
)
:
T
Returns the underlying pinned object.
Since Kotlin
1.3
unpin
Link copied to clipboard
Native
fun
unpin
(
)
Disposes the handle. It must not be
used
after that.
Since Kotlin
1.3
Extensions
address
Of
Link copied to clipboard
Native
fun
Pinned
<
ByteArray
>
.
addressOf
(
index
:
Int
)
:
CPointer
<
ByteVar
>
fun
Pinned
<
String
>
.
addressOf
(
index
:
Int
)
:
CPointer
<
COpaque
>
fun
Pinned
<
CharArray
>
.
addressOf
(
index
:
Int
)
:
CPointer
<
COpaque
>
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
>
Since Kotlin
1.3