Home
last modified time | relevance | path

Searched refs:so_far (Results 1 – 2 of 2) sorted by relevance

/bootable/recovery/install/
Dverifier.cpp226 uint64_t so_far = 0; in verify_file() local
227 while (so_far < signed_len) { in verify_file()
230 uint64_t read_size = std::min<uint64_t>(signed_len - so_far, 16 * MiB); in verify_file()
231 package->UpdateHashAtOffset(hashers, so_far, read_size); in verify_file()
232 so_far += read_size; in verify_file()
234 double f = so_far / static_cast<double>(signed_len); in verify_file()
235 if (f > frac + 0.02 || read_size == so_far) { in verify_file()
Dpackage.cpp250 uint64_t so_far = 0; in UpdateHashAtOffset() local
251 while (so_far < length) { in UpdateHashAtOffset()
252 uint64_t read_size = std::min<uint64_t>(length - so_far, 16 * MiB); in UpdateHashAtOffset()
254 if (!ReadFullyAtOffset(buffer.data(), read_size, start + so_far)) { in UpdateHashAtOffset()
261 so_far += read_size; in UpdateHashAtOffset()