commonMain.io.realm.kotlin.internal.query.QueryUtils.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of library-base-jvm Show documentation
Show all versions of library-base-jvm Show documentation
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.
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