mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 19:44:05 +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()
|
fos.close()
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
forEach {
|
/*forEach {
|
||||||
fos.write(it.toInt())
|
fos.write(it.toInt())
|
||||||
|
}*/
|
||||||
|
forEachUsedBanks { count, bytes ->
|
||||||
|
fos.write(bytes, 0, count)
|
||||||
}
|
}
|
||||||
|
|
||||||
fos.flush()
|
fos.flush()
|
||||||
fos.close()
|
fos.close()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user