tevd: bytearray64 update

This commit is contained in:
minjaesong
2022-12-17 05:45:52 +09:00
parent 60c0dd4c06
commit 39318b1508

View File

@@ -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
}
}