Lines Matching defs:buf
225 local int add_data_in_datablock(linkedlist_data* ll, const void* buf, uLong len)
241 from_copy = (unsigned char*)buf;
289 unsigned char buf[8];
293 buf[n] = (unsigned char)(x & 0xff);
300 buf[n] = 0xff;
304 if (ZWRITE64(*pzlib_filefunc_def,filestream,buf,nbByte)!=(uLong)nbByte)
313 unsigned char* buf=(unsigned char*)dest;
316 buf[n] = (unsigned char)(x & 0xff);
324 buf[n] = 0xff;
482 unsigned char* buf;
497 buf = (unsigned char*)ALLOC(BUFREADCOMMENT+4);
498 if (buf==NULL)
518 if (ZREAD64(*pzlib_filefunc_def,filestream,buf,uReadSize)!=uReadSize)
522 if (((*(buf+i))==0x50) && ((*(buf+i+1))==0x4b) &&
523 ((*(buf+i+2))==0x05) && ((*(buf+i+3))==0x06))
532 TRYFREE(buf);
544 unsigned char* buf;
560 buf = (unsigned char*)ALLOC(BUFREADCOMMENT+4);
561 if (buf==NULL)
581 if (ZREAD64(*pzlib_filefunc_def,filestream,buf,uReadSize)!=uReadSize)
587 if (((*(buf+i))==0x50) && ((*(buf+i+1))==0x4b) && ((*(buf+i+2))==0x06) && ((*(buf+i+3))==0x07))
598 TRYFREE(buf);
1402 extern int ZEXPORT zipWriteInFileInZip (zipFile file,const void* buf,unsigned int len)
1414 zi->ci.crc32 = crc32(zi->ci.crc32,buf,(uInt)len);
1419 zi->ci.bstream.next_in = (void*)buf;
1453 zi->ci.stream.next_in = (Bytef*)buf;