W3cubDocs

/Kotlin

NativePointed

Platform and version requirements: Native (1.3)
open class NativePointed

The entity which has an associated native pointer. Subtypes are supposed to represent interpretations of the pointed data or code.

This interface is likely to be handled by compiler magic and shouldn't be subtyped by arbitrary classes.

TODO: the behavior of equals, hashCode and toString differs on Native and JVM backends.

Properties

Platform and version requirements: Native (1.3)

rawPtr

var rawPtr: NativePtr

Extension Properties

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)

reinterpret

Changes the interpretation of the pointed data or code.

fun <T : NativePointed> NativePointed.reinterpret(): T

Inheritors

Platform and version requirements: Native (1.3)

CPointed

C data or code.

abstract class CPointed : NativePointed

© 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/-native-pointed/index.html