Searched refs:newsize (Results 1 – 2 of 2) sorted by relevance
/bootable/recovery/applypatch/ |
D | bsdiff.c | 159 static off_t matchlen(u_char *old,off_t oldsize,u_char *new,off_t newsize) in matchlen() argument 163 for(i=0;(i<oldsize)&&(i<newsize);i++) in matchlen() 170 u_char *new,off_t newsize,off_t st,off_t en,off_t *pos) in search() argument 175 x=matchlen(old+I[st],oldsize-I[st],new,newsize); in search() 176 y=matchlen(old+I[en],oldsize-I[en],new,newsize); in search() 188 if(memcmp(old+I[x],new,MIN(oldsize-I[x],newsize))<0) { in search() 189 return search(I,old,oldsize,new,newsize,x,en,pos); in search() 191 return search(I,old,oldsize,new,newsize,st,x,pos); in search() 224 int bsdiff(u_char* old, off_t oldsize, off_t** IP, u_char* new, off_t newsize, in bsdiff() argument 252 if(((db=malloc(newsize+1))==NULL) || in bsdiff() [all …]
|
D | imgdiff.c | 182 int bsdiff(u_char* old, off_t oldsize, off_t** IP, u_char* new, off_t newsize,
|