CVariable

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

Native
1.3

Type

The (complete) C data type.

open class Type

Constructors

Native
1.3

<init>

The C data variable located in memory.

CVariable(rawPtr: NativePtr)

Extension Properties

Native
1.3

ptr

Returns the pointer to this data or code.

val <T : CPointed> T.ptr: CPointer<T>
Native
1.3

rawPtr

Extension Functions

Native
1.3

getRawPointer

fun NativePointed.getRawPointer(): NativePtr
Native
1.3

readValue

fun <T : CVariable> CPointed.readValue(
    size: Long,
    align: Int
): CValue<T>
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

Native
1.3

CPointerVarOf

class CPointerVarOf<T : CPointer<*>> : CVariable
Native
1.3

CPrimitiveVar

The C primitive-typed variable located in memory.

sealed class CPrimitiveVar : CVariable
Native
1.3

CStructVar

The C struct-typed variable located in memory.

abstract class CStructVar : CVariable
Native
1.3

ObjCNotImplementedVar

class ObjCNotImplementedVar<T> : CVariable
Native
1.3

ObjCObjectVar

class ObjCObjectVar<T> : CVariable
Native
1.3

Vector128VarOf

class Vector128VarOf<T : Vector128> : CVariable