VerifyProgress

fun interface VerifyProgress(source)

Called by JsonStore.verify as it works, at least once per phase and then every few MiB.

Functions

Link copied to clipboard
abstract fun onProgress(phase: VerifyPhase, bytesChecked: Long, bytesTotal: Long)

bytesChecked of bytesTotal are the phase's own bytes, so they restart at each phase; bytesTotal is an estimate made when the phase starts. Throwing from here stops the scrub with that exception.