mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
tevd: bytearray64 update
This commit is contained in:
@@ -32,7 +32,8 @@ class ByteArray64(initialSize: Long = BANK_SIZE.toLong()) {
|
||||
|
||||
fun fromByteArray(byteArray: ByteArray): ByteArray64 {
|
||||
val ba64 = ByteArray64(byteArray.size.toLong())
|
||||
byteArray.forEachIndexed { i, byte -> ba64[i.toLong()] = byte }
|
||||
// byteArray.forEachIndexed { i, byte -> ba64[i.toLong()] = byte }
|
||||
ba64.appendBytes(byteArray)
|
||||
return ba64
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user