CValues

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

CValues
Link copied to clipboard
fun CValues()

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getPointer
Link copied to clipboard
open override fun getPointer(scope: AutofreeScope): CPointer<T>

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

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

Copy the referenced values to placement and return placement pointer.

Properties

align
Link copied to clipboard
abstract val align: Int
size
Link copied to clipboard
abstract val size: Int

Inheritors

CValue
Link copied to clipboard

Extensions

getBytes
Link copied to clipboard
fun <T : CVariable> CValues<T>.getBytes(): ByteArray
placeTo
Link copied to clipboard
fun <T : CVariable> CValues<T>.placeTo(scope: AutofreeScope): CPointer<T>