mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-11-02 10:03:01 +00:00
create crypto project
This commit is contained in:
1 parent
d074f29b82
commit
a4020cb484
13 files changed
+193
No files matched your search
@@ -0,0 +1,10 @@
|
||||
package dev.inmo.micro_utils.coroutines
|
||||
|
||||
import kotlinx.coroutines.await
|
||||
import org.khronos.webgl.Int8Array
|
||||
import org.w3c.fetch.Response
|
||||
import org.w3c.files.Blob
|
||||
|
||||
suspend fun Blob.toByteArray() = Int8Array(
|
||||
Response(this).arrayBuffer().await()
|
||||
) as ByteArray
|
||||
Reference in new issue
Block a user