abstract class CValue<T : CVariable> : CValues<T>
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.
The single immutable C value. It is self-contained and doesn't depend on native memory.
CValue()
fun <T : CStructVar> CValue<T>.copy( modify: T.() -> Unit ): CValue<T>
fun <T : CVariable> CValues<T>.getBytes(): ByteArray
fun <T : CVariable> CValues<T>.placeTo( scope: AutofreeScope ): CPointer<T>
Calls the block with temporary copy if this value as receiver.
fun <T : CStructVar, R> CValue<T>.useContents( block: T.() -> R ): R
fun <T : CVariable> CValue<T>.write(location: NativePtr)
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlinx.cinterop/-c-value/index.html