CValue
The single immutable C value. It is self-contained and doesn't depend on native memory.
TODO: consider providing an adapter instead of subtyping CValues .
Constructors
<init>
The single immutable C value. It is self-contained and doesn't depend on native memory.
CValue
(
)
Extension Functions
copy
fun
<
T
:
CStructVar
>
CValue
<
T
>
.
copy
(
modify
:
T
.
(
)
->
Unit
)
:
CValue
<
T
>
placeTo
fun
<
T
:
CVariable
>
CValues
<
T
>
.
placeTo
(
scope
:
AutofreeScope
)
:
CPointer
<
T
>
useContents
Calls the block with temporary copy of this value as receiver.
fun
<
T
:
CStructVar
,
R
>
CValue
<
T
>
.
useContents
(
block
:
T
.
(
)
->
R
)
:
R