Lines Matching refs:rb_zstr
451 z_stream rb_zstr; member
457 off_t ptroff = (caddr_t)rb->rb_zstr.next_out - rb->rb_base; in rbzs_grow()
462 rb->rb_zstr.next_out = (Bytef *)(rb->rb_ptr); in rbzs_grow()
463 rb->rb_zstr.avail_out += RES_BUF_CHUNK_SIZE; in rbzs_grow()
471 rb->rb_zstr.zalloc = (alloc_func)0; in compress_start()
472 rb->rb_zstr.zfree = (free_func)0; in compress_start()
473 rb->rb_zstr.opaque = (voidpf)0; in compress_start()
475 if ((rc = deflateInit(&rb->rb_zstr, Z_BEST_COMPRESSION)) != Z_OK) in compress_start()
485 rb->rb_zstr.next_out = (Bytef *)rb->rb_ptr; in compress_buffer()
486 rb->rb_zstr.avail_out = rb->rb_size - (rb->rb_ptr - rb->rb_base); in compress_buffer()
487 rb->rb_zstr.next_in = (Bytef *)buf; in compress_buffer()
488 rb->rb_zstr.avail_in = n; in compress_buffer()
490 while (rb->rb_zstr.avail_in) { in compress_buffer()
491 if (rb->rb_zstr.avail_out == 0) in compress_buffer()
494 if ((rc = deflate(&rb->rb_zstr, Z_NO_FLUSH)) != Z_OK) in compress_buffer()
497 rb->rb_ptr = (caddr_t)rb->rb_zstr.next_out; in compress_buffer()
508 if (rb->rb_zstr.avail_out == 0) in compress_flush()
511 rc = deflate(&rb->rb_zstr, type); in compress_flush()
518 rb->rb_ptr = (caddr_t)rb->rb_zstr.next_out; in compress_flush()
528 if ((rc = deflateEnd(&rb->rb_zstr)) != Z_OK) in compress_end()