W3cubDocs

/Kotlin

CVariable

Platform and version requirements: Native (1.3)
abstract class CVariable : CPointed

The C data variable located in memory.

The non-abstract subclasses should represent the (complete) C data type and thus specify size and alignment. Each such subclass must have a companion object which is a Type.

Types

Platform and version requirements: Native (1.3)

Type

The (complete) C data type.

open class Type

Constructors

Platform and version requirements: Native (1.3)

<init>

The C data variable located in memory.

CVariable(rawPtr: NativePtr)

Extension Properties

Platform and version requirements: Native (1.3)

ptr

Returns the pointer to this data or code.

val <T : CPointed> T.ptr: CPointer<T>
Platform and version requirements: Native (1.3)

rawPtr

val NativePointed?.rawPtr: NativePtr

Extension Functions

Platform and version requirements: Native (1.3)

getRawPointer

fun NativePointed.getRawPointer(): NativePtr
Platform and version requirements: Native (1.3)

readValue

fun <T : CVariable> CPointed.readValue(
    size: Long, 
    align: Int
): CValue<T>
Platform and version requirements: Native (1.3)

readValues

fun <T : CVariable> T.readValues(count: Int): CValues<T>
fun <T : CVariable> CPointed.readValues(
    size: Int, 
    align: Int
): CValues<T>

Inheritors

Platform and version requirements: Native (1.3)

CPointerVarOf

class CPointerVarOf<T : CPointer<*>> : CVariable
Platform and version requirements: Native (1.3)

CPrimitiveVar

The C primitive-typed variable located in memory.

sealed class CPrimitiveVar : CVariable
Platform and version requirements: Native (1.3)

CStructVar

The C struct-typed variable located in memory.

abstract class CStructVar : CVariable
Platform and version requirements: Native (1.3)

ObjCNotImplementedVar

class ObjCNotImplementedVar<T> : CVariable
Platform and version requirements: Native (1.3)

ObjCObjectVar

class ObjCObjectVar<T> : CVariable
Platform and version requirements: Native (1.3)

Vector128VarOf

class Vector128VarOf<T : Vector128> : CVariable

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlinx.cinterop/-c-variable/index.html