W3cubDocs

/Kotlin

<init>

Platform and version requirements: Native (1.3)
DetachedObjectGraph(
    mode: TransferMode = TransferMode.SAFE, 
    producer: () -> T)

Creates stable pointer to object, ensuring associated object subgraph is disjoint in specified mode (TransferMode.SAFE by default). Raw value returned by asCPointer could be stored to a C variable or passed to another Kotlin machine.

Platform and version requirements: Native (1.3)
DetachedObjectGraph(pointer: COpaquePointer?)

Creates detached object graph from value stored earlier in a C raw pointer.

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.concurrent/-detached-object-graph/-init-.html