Added js _util functions

This commit is contained in:
Ugljesa Jovanovic committed 2020-09-26 23:58:45 +02:00
1 parent f113f7805d
commit 4af1477c90
5 files changed
+161 -69

No files matched your search

@@ -113,10 +113,6 @@ actual object LibsodiumUtil {
return result.map { it.toChar() }.dropLast(1).joinToString("")
}
actual fun toString(data: UByteArray): String {
TODO("not implemented yet")
}
actual fun fromBase64(data: String, variant : Base64Variants): UByteArray {
val maxLength = (data.length * 3) / 4
val intermediaryResult = UByteArray(maxLength) { 0U }
@@ -162,8 +158,4 @@ actual object LibsodiumUtil {
return result
}
actual fun fromString(data: String): UByteArray {
TODO("not implemented yet")
}
}