Lines Matching refs:buf
195 static void offtout(off_t x,u_char *buf) in offtout() argument
201 buf[0]=y%256;y-=buf[0]; in offtout()
202 y=y/256;buf[1]=y%256;y-=buf[1]; in offtout()
203 y=y/256;buf[2]=y%256;y-=buf[2]; in offtout()
204 y=y/256;buf[3]=y%256;y-=buf[3]; in offtout()
205 y=y/256;buf[4]=y%256;y-=buf[4]; in offtout()
206 y=y/256;buf[5]=y%256;y-=buf[5]; in offtout()
207 y=y/256;buf[6]=y%256;y-=buf[6]; in offtout()
208 y=y/256;buf[7]=y%256; in offtout()
210 if(x<0) buf[7]|=0x80; in offtout()
237 u_char buf[8]; in bsdiff() local
343 offtout(lenf,buf); in bsdiff()
344 BZ2_bzWrite(&bz2err, pfbz2, buf, 8); in bsdiff()
348 offtout((scan-lenb)-(lastscan+lenf),buf); in bsdiff()
349 BZ2_bzWrite(&bz2err, pfbz2, buf, 8); in bsdiff()
353 offtout((pos-lenb)-(lastpos+lenf),buf); in bsdiff()
354 BZ2_bzWrite(&bz2err, pfbz2, buf, 8); in bsdiff()