W3cubDocs

/Kotlin

CPrimitiveVar

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

The C primitive-typed variable located in memory.

Types

Platform and version requirements: Native (1.3)

Type

open class Type : Type

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> CPointed.readValues(
    size: Int, 
    align: Int
): CValues<T>
fun <T : CVariable> T.readValues(count: Int): CValues<T>

Inheritors

Platform and version requirements: Native (1.3)

BooleanVarOf

class BooleanVarOf<T : Boolean> : CPrimitiveVar
Platform and version requirements: Native (1.3)

ByteVarOf

class ByteVarOf<T : Byte> : CPrimitiveVar
Platform and version requirements: Native (1.3)

CEnumVar

abstract class CEnumVar : CPrimitiveVar
Platform and version requirements: Native (1.3)

DoubleVarOf

class DoubleVarOf<T : Double> : CPrimitiveVar
Platform and version requirements: Native (1.3)

FloatVarOf

class FloatVarOf<T : Float> : CPrimitiveVar
Platform and version requirements: Native (1.3)

IntVarOf

class IntVarOf<T : Int> : CPrimitiveVar
Platform and version requirements: Native (1.3)

LongVarOf

class LongVarOf<T : Long> : CPrimitiveVar
Platform and version requirements: Native (1.3)

ShortVarOf

class ShortVarOf<T : Short> : CPrimitiveVar
Platform and version requirements: Native (1.3)

UByteVarOf

class UByteVarOf<T : UByte> : CPrimitiveVar
Platform and version requirements: Native (1.3)

UIntVarOf

class UIntVarOf<T : UInt> : CPrimitiveVar
Platform and version requirements: Native (1.3)

ULongVarOf

class ULongVarOf<T : ULong> : CPrimitiveVar
Platform and version requirements: Native (1.3)

UShortVarOf

class UShortVarOf<T : UShort> : CPrimitiveVar

© 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-primitive-var/index.html