Lines Matching defs:buf
42 int find_lzma_header(unsigned char *buf) {
43 return (buf[0] < 0xE1
44 && buf[0] == 0x5d
45 && buf[4] < 0x20
46 && (memcmp (buf + 10 , "\x00\x00\x00", 3) == 0
47 || (memcmp (buf + 5, "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF", 8) == 0)));
51 char buf[BUFSIZE];
64 ret = fread(buf, BUFSIZE, 1, stdin);
70 if (find_lzma_header(buf+i) && numlzma-- <= 0) {
71 fwrite(buf+i, (BUFSIZE-i), 1, stdout);