Lines Matching refs:old_file
185 std::unique_ptr<FileInterface> old_file = File::FOpen(old_filename, O_RDONLY); in bspatch() local
186 if (!old_file) { in bspatch()
197 old_file.reset(new ExtentsFile(std::move(old_file), parsed_old_extents)); in bspatch()
225 return bspatch(old_file, new_file, patch_data, patch_size); in bspatch()
235 std::unique_ptr<FileInterface> old_file(new MemoryFile(old_data, old_size)); in bspatch() local
238 return bspatch(old_file, new_file, patch_data, patch_size); in bspatch()
243 int bspatch(const std::unique_ptr<FileInterface>& old_file, in bspatch() argument
254 if (!old_file->GetSize(&old_file_size)) { in bspatch()
296 !old_file->Seek(seek_offset)) { in bspatch()
307 if (!old_file->Read(old_buf.data(), bytes_to_read, &read_bytes)) { in bspatch()
365 old_file->Close(); in bspatch()