W3cubDocs

/Kotlin

CStructVar

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

The C struct-typed variable located in memory.

Types

Platform and version requirements: Native (1.3)

Type

open class Type : Type

Constructors

Platform and version requirements: Native (1.3)

<init>

The C struct-typed variable located in memory.

CStructVar(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)

arrayMemberAt

fun <T : CVariable> CStructVar.arrayMemberAt(
    offset: Long
): CArrayPointer<T>
Platform and version requirements: Native (1.3)

getRawPointer

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

memberAt

Returns the member of this CStructVar which is located by given offset in bytes.

fun <T : CPointed> CStructVar.memberAt(offset: Long): T
Platform and version requirements: Native (1.3)

readValue

fun <T : CStructVar> T.readValue(): CValue<T>
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-struct-var/index.html