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

commonMain.io.realm.kotlin.internal.query.QueryUtils.kt Maven / Gradle / Ivy

Go to download

Library code for Realm Kotlin. This artifact is not supposed to be consumed directly, but through 'io.realm.kotlin:gradle-plugin:1.11.1' instead.

There is a newer version: 3.0.0
Show newest version
package io.realm.kotlin.internal.query

import io.realm.kotlin.internal.Mediator
import io.realm.kotlin.internal.RealmReference
import io.realm.kotlin.internal.RealmResultsImpl
import io.realm.kotlin.internal.interop.ClassKey
import io.realm.kotlin.internal.interop.RealmInterop
import io.realm.kotlin.internal.interop.RealmResultsPointer
import io.realm.kotlin.types.BaseRealmObject
import kotlin.reflect.KClass

internal fun  thawResults(
    liveRealm: RealmReference,
    resultsPointer: RealmResultsPointer,
    classKey: ClassKey,
    clazz: KClass,
    mediator: Mediator
): RealmResultsImpl {
    val liveResultPtr = RealmInterop.realm_results_resolve_in(resultsPointer, liveRealm.dbPointer)
    return RealmResultsImpl(liveRealm, liveResultPtr, classKey, clazz, mediator)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy