• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zip30/

Lines Matching refs:zstrm

186   local z_stream zstrm;         /* zlib's data interface structure */
1314 zstrm.zalloc = (alloc_func)Z_NULL;
1315 zstrm.zfree = (free_func)Z_NULL;
1318 err = deflateInit2(&zstrm, pack_level, Z_DEFLATED, -windowBits, 8, 0);
1346 err = deflateEnd(&zstrm);
1464 zstrm.next_in = (Bytef *)window;
1469 zstrm.next_in = (Bytef *)f_ibuf;
1471 zstrm.avail_in = file_read(zstrm.next_in, ibuf_sz);
1472 if (zstrm.avail_in < ibuf_sz) {
1473 unsigned more = file_read(zstrm.next_in + zstrm.avail_in,
1474 (ibuf_sz - zstrm.avail_in));
1478 zstrm.avail_in += more;
1481 zstrm.next_out = (Bytef *)f_obuf;
1482 zstrm.avail_out = OBUF_SZ;
1484 if (!maybe_stored) while (zstrm.avail_in != 0 && zstrm.avail_in != EOF) {
1485 err = deflate(&zstrm, Z_NO_FLUSH);
1490 if (zstrm.avail_out == 0) {
1494 zstrm.next_out = (Bytef *)f_obuf;
1495 zstrm.avail_out = OBUF_SZ;
1497 if (zstrm.avail_in == 0) {
1499 while((unsigned)(zstrm.total_in / (uLong)WSIZE) > mrk_cnt) {
1529 zstrm.next_in = (Bytef *)f_ibuf;
1531 zstrm.next_in = (Bytef *)f_ibuf;
1533 zstrm.avail_in = file_read(zstrm.next_in, ibuf_sz);
1538 err = deflate(&zstrm, Z_FINISH);
1540 if (err == Z_STREAM_END && zstrm.total_out >= zstrm.total_in &&
1543 unsigned len_out = (unsigned)zstrm.total_in;
1547 zstrm.total_out = (uLong)len_out;
1554 if (zstrm.avail_out < OBUF_SZ) {
1555 unsigned len_out = OBUF_SZ - zstrm.avail_out;
1559 zstrm.next_out = (Bytef *)f_obuf;
1560 zstrm.avail_out = OBUF_SZ;
1570 z_entry->att = (ush)(zstrm.data_type == Z_ASCII ? ASCII : BINARY);
1571 cmpr_size = (ulg)zstrm.total_out;
1573 if ((err = deflateReset(&zstrm)) != Z_OK)
1626 zstrm.next_in = (Bytef *)src;
1627 zstrm.avail_in = (uInt)srcsize;
1628 zstrm.next_out = (Bytef *)(tgt + out_total);
1629 zstrm.avail_out = (uInt)tgtsize - (uInt)out_total;
1631 err = deflate(&zstrm, Z_FINISH);
1634 out_total += (unsigned)zstrm.total_out;
1636 if ((err = deflateReset(&zstrm)) != Z_OK)