MUCH faster bytearray64 dump to physical drive

This commit is contained in:
minjaesong
2023-12-21 03:46:29 +09:00
parent b0ae92c64b
commit 44ff974b86

View File

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