A nicer workaround for JS compiler wrong function name bug

This commit is contained in:
Ugljesa Jovanovic authored and Ugljesa Jovanovic committed 2020-08-08 22:05:46 +02:00
1 parent 5d61858f81
commit e997c18d1d
8 files changed
+38 -28

No files matched your search

@@ -27,7 +27,7 @@ actual class Crypto internal actual constructor() {
val _emitByteArray: ByteArray = ByteArray(0)
actual fun crypto_hash_sha256_init_spec(): Sha256State {
actual fun crypto_hash_sha256_init(): Sha256State {
val allocated = sodium_malloc(debug.test.Sha256State.size.convert())!!
val state = allocated.reinterpret<debug.test.Sha256State>().pointed
libsodium.crypto_hash_sha256_init(state.ptr)