Starting work on JS generator
This commit is contained in:
1 parent
a972b022d3
commit
1aaffe9c7c
4 files changed
+173
-4
No files matched your search
@@ -13,7 +13,6 @@ import org.khronos.webgl.set
|
||||
*/
|
||||
fun UByteArray.toUInt8Array() : Uint8Array {
|
||||
val uint8Result = Uint8Array(toByteArray().toTypedArray())
|
||||
// console.log("Uint8: $uint8Result")
|
||||
return uint8Result
|
||||
}
|
||||
|
||||
@@ -23,7 +22,6 @@ fun Uint8Array.toUByteArray() : UByteArray {
|
||||
for (i in 0 until length) {
|
||||
result[i] = get(i).toUByte()
|
||||
}
|
||||
// console.log("UbyteArray: ${result.joinToString()}")
|
||||
|
||||
return result
|
||||
}
|
||||
Reference in new issue
Block a user