Update to latest Backup.proto and fix various backup bugs.

This commit is contained in:
Greyson Parrelli
2024-08-09 16:04:47 -04:00
committed by mtang-signal
parent e2e6a73e8d
commit 5ffb7b07da
31 changed files with 761 additions and 2182 deletions

View File

@@ -202,6 +202,15 @@ inline fun Cursor.forEach(operation: (Cursor) -> Unit) {
}
}
inline fun Cursor.forEachIndexed(operation: (Int, Cursor) -> Unit) {
use {
var i = 0
while (moveToNext()) {
operation(i++, this)
}
}
}
fun Cursor.iterable(): Iterable<Cursor> {
return CursorIterable(this)
}