W3cubDocs

/Kotlin

CValues

Platform and version requirements: 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

Platform and version requirements: 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

Platform and version requirements: Native (1.3)

align

abstract val align: Int
Platform and version requirements: Native (1.3)

size

abstract val size: Int

Functions

Platform and version requirements: 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
Platform and version requirements: Native (1.3)

getPointer

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

open fun getPointer(scope: AutofreeScope): CPointer<T>
Platform and version requirements: Native (1.3)

hashCode

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

open fun hashCode(): Int
Platform and version requirements: Native (1.3)

place

Copy the referenced values to placement and return placement pointer.

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

Extension Functions

Platform and version requirements: Native (1.3)

getBytes

fun <T : CVariable> CValues<T>.getBytes(): ByteArray
Platform and version requirements: Native (1.3)

placeTo

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

Inheritors

Platform and version requirements: 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>

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlinx.cinterop/-c-values/index.html