Searched refs:so_far (Results 1 – 2 of 2) sorted by relevance
226 uint64_t so_far = 0; in verify_file() local227 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()
250 uint64_t so_far = 0; in UpdateHashAtOffset() local251 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()