Lines Matching refs:old_file
186 std::unique_ptr<FileInterface> old_file = File::FOpen(old_filename, O_RDONLY); in bspatch() local
187 if (!old_file) { in bspatch()
198 old_file.reset(new ExtentsFile(std::move(old_file), parsed_old_extents)); in bspatch()
226 return bspatch(old_file, new_file, patch_data, patch_size); in bspatch()
236 std::unique_ptr<FileInterface> old_file(new MemoryFile(old_data, old_size)); in bspatch() local
239 return bspatch(old_file, new_file, patch_data, patch_size); in bspatch()
244 int bspatch(const std::unique_ptr<FileInterface>& old_file, in bspatch() argument
255 if (!old_file->GetSize(&old_file_size)) { in bspatch()
297 !old_file->Seek(seek_offset)) { in bspatch()
308 if (!old_file->Read(old_buf.data(), bytes_to_read, &read_bytes)) { in bspatch()
371 old_file->Close(); in bspatch()