CValue

abstract class CValue<T : CVariable> : CValues<T> (source)

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.

Since Kotlin

1.3

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val align: Int
Since Kotlin 1.3
Link copied to clipboard
abstract val size: Int
Since Kotlin 1.3

Functions

Link copied to clipboard
inline fun <T : CStructVar> CValue<T>.copy(modify: T.() -> Unit): CValue<T>
Since Kotlin 1.3
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.3
Link copied to clipboard
Since Kotlin 1.3
Link copied to clipboard
open override fun getPointer(scope: AutofreeScope): CPointer<T>

Copies the values to placement and returns the pointer to the copy.

Since Kotlin 1.3
Link copied to clipboard
open override fun hashCode(): Int
Since Kotlin 1.3
Link copied to clipboard
abstract fun place(placement: CPointer<T>): CPointer<T>

Copy the referenced values to placement and return placement pointer.

Since Kotlin 1.3
Link copied to clipboard
Since Kotlin 1.3
Link copied to clipboard
inline fun <T : CStructVar, R> CValue<T>.useContents(block: T.() -> R): R

Calls the block with temporary copy of this value as receiver.

Since Kotlin 1.3
Link copied to clipboard
fun <T : CVariable> CValue<T>.write(location: NativePtr)
Since Kotlin 1.3