CValues

Native
1.3
abstract class CValues<T : CVariable> : CValuesRef<T>

The (possibly empty) sequence of immutable C values. It is self-contained and doesn't depend on native memory.

Constructors

Native
1.3

<init>

The (possibly empty) sequence of immutable C values. It is self-contained and doesn't depend on native memory.

CValues()

Properties

Native
1.3

align

abstract val align: Int
Native
1.3

size

abstract val size: Int

Functions

Native
1.3

equals

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

open fun equals(other: Any?): Boolean
Native
1.3

getPointer

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

open fun getPointer(scope: AutofreeScope): CPointer<T>
Native
1.3

hashCode

Returns a hash code value for the object. The general contract of hashCode is:

open fun hashCode(): Int
Native
1.3

place

Copy the referenced values to placement and return placement pointer.

abstract fun place(placement: CPointer<T>): CPointer<T>

Extension Functions

Native
1.3

getBytes

fun <T : CVariable> CValues<T>.getBytes(): ByteArray
Native
1.3

placeTo

fun <T : CVariable> CValues<T>.placeTo(
    scope: AutofreeScope
): CPointer<T>

Inheritors

Native
1.3

CValue

The single immutable C value. It is self-contained and doesn't depend on native memory.

abstract class CValue<T : CVariable> : CValues<T>