mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-09 21:31:51 +09:00
MUCH faster bytearray64 dump to physical drive
This commit is contained in:
@@ -293,9 +293,13 @@ class ByteArray64(initialSize: Long = BANK_SIZE.toLong()) {
|
||||
fos.close()
|
||||
}*/
|
||||
|
||||
forEach {
|
||||
/*forEach {
|
||||
fos.write(it.toInt())
|
||||
}*/
|
||||
forEachUsedBanks { count, bytes ->
|
||||
fos.write(bytes, 0, count)
|
||||
}
|
||||
|
||||
fos.flush()
|
||||
fos.close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user