W3cubDocs

/Kotlin

CPointerVarOf

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

Types

Platform and version requirements: Native (1.3)

Companion

companion object Companion : Type

Constructors

Platform and version requirements: Native (1.3)

<init>

CPointerVarOf(rawPtr: NativePtr)

Extension Properties

Platform and version requirements: Native (1.3)

pointed

The code or data pointed by the value of this variable.

var <T : CPointed, P : CPointer<T>> CPointerVarOf<P>.pointed: T?
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
Platform and version requirements: Native (1.3)

value

The value of this variable.

var <P : CPointer<*>> CPointerVarOf<P>.value: P?

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>

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