Lines Matching refs:old_file
221 std::unique_ptr<FileInterface> old_file = File::FOpen(old_filename, O_RDONLY); in bspatch() local
222 if (!old_file) { in bspatch()
234 old_file.reset(new ExtentsFile(std::move(old_file), parsed_old_extents)); in bspatch()
263 return bspatch(old_file, new_file, patch_data, patch_size); in bspatch()
273 std::unique_ptr<FileInterface> old_file(new MemoryFile(old_data, old_size)); in bspatch() local
276 return bspatch(old_file, new_file, patch_data, patch_size); in bspatch()
281 int bspatch(const std::unique_ptr<FileInterface>& old_file, in bspatch() argument
354 if (!old_file->GetSize(&oldsize)) { in bspatch()
400 if (static_cast<uint64_t>(i) != old_file_pos && !old_file->Seek(i)) { in bspatch()
412 if (!old_file->Read(old_buf.data(), bytes_to_read, &read_bytes)) { in bspatch()
466 old_file->Close(); in bspatch()