Lines Matching refs:old_buf
49 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument
53 return bsdiff(old_buf, oldsize, new_buf, newsize, 0, &patch, in bsdiff()
57 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument
60 return bsdiff(old_buf, oldsize, new_buf, newsize, 0, patch, in bsdiff()
64 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument
82 local_sai = CreateSuffixArrayIndex(old_buf, oldsize); in bsdiff()
93 DiffEncoder diff_encoder(patch, old_buf, oldsize, new_buf, newsize); in bsdiff()
118 if(old_buf[scsc+lastoffset] == new_buf[scsc]) in bsdiff()
125 (old_buf[scan+lastoffset] == new_buf[scan])) in bsdiff()
143 if(old_buf[lastpos+i]==new_buf[lastscan+i]) s++; in bsdiff()
152 if(old_buf[pos-i]==new_buf[scan-i]) s++; in bsdiff()
162 old_buf[lastpos+lenf-overlap+i]) s++; in bsdiff()
164 old_buf[pos-lenb+i]) s--; in bsdiff()