Home
last modified time | relevance | path

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

/build/tools/applypatch/
Dbspatch.c186 off_t oldpos = 0, newpos = 0; in ApplyBSDiffPatchMem() local
191 while (newpos < *new_size) { in ApplyBSDiffPatchMem()
203 if (newpos + ctrl[0] > *new_size) { in ApplyBSDiffPatchMem()
209 len_read = BZ2_bzRead(&bzerr, dpfbz2, *new_data + newpos, ctrl[0]); in ApplyBSDiffPatchMem()
218 (*new_data)[newpos+i] += old_data[oldpos+i]; in ApplyBSDiffPatchMem()
223 newpos += ctrl[0]; in ApplyBSDiffPatchMem()
227 if (newpos + ctrl[1] > *new_size) { in ApplyBSDiffPatchMem()
233 len_read = BZ2_bzRead(&bzerr, epfbz2, *new_data + newpos, ctrl[1]); in ApplyBSDiffPatchMem()
240 newpos += ctrl[1]; in ApplyBSDiffPatchMem()