components/resources/library/src/jsMain/kotlin/org/jetbrains/compose/resources/ResourceReader.js.kt [21:37]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - override suspend fun read(path: String): ByteArray { return readAsBlob(path).asByteArray() } override suspend fun readPart(path: String, offset: Long, size: Long): ByteArray { val part = readAsBlob(path).slice(offset.toInt(), (offset + size).toInt()) return part.asByteArray() } override fun getUri(path: String): String { val location = window.location return getResourceUrl(location.origin, location.pathname, path) } private suspend fun readAsBlob(path: String): Blob { val resPath = WebResourcesConfiguration.getResourcePath(path) val response = ResourceWebCache.load(resPath) { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - components/resources/library/src/wasmJsMain/kotlin/org/jetbrains/compose/resources/ResourceReader.wasmJs.kt [35:51]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - override suspend fun read(path: String): ByteArray { return readAsBlob(path).asByteArray() } override suspend fun readPart(path: String, offset: Long, size: Long): ByteArray { val part = readAsBlob(path).slice(offset.toInt(), (offset + size).toInt()) return part.asByteArray() } override fun getUri(path: String): String { val location = window.location return getResourceUrl(location.origin, location.pathname, path) } private suspend fun readAsBlob(path: String): Blob { val resPath = WebResourcesConfiguration.getResourcePath(path) val response = ResourceWebCache.load(resPath) { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -