All Downloads are FREE. Search and download functionalities are using the official Maven repository.

godot.core.memory.NativeCoreBinding.kt Maven / Gradle / Ivy

There is a newer version: 0.10.0-4.3.0
Show newest version
package godot.core.memory

import godot.core.NativeCoreType
import godot.core.VariantParser
import java.lang.ref.ReferenceQueue
import java.lang.ref.WeakReference

internal class NativeCoreBinding(
    ref: NativeCoreType,
    val variantType: VariantParser
) : WeakReference(ref, queue) {
    val ptr = ref._handle

    companion object {
        /** Queue to be notified when the GC runs on NativeCoreTypes.*/
        val queue = ReferenceQueue()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy