Lines Matching refs:strm
1543 z_stream strm; in DeflateBuffer() local
1544 strm.zalloc = Z_NULL; in DeflateBuffer()
1545 strm.zfree = Z_NULL; in DeflateBuffer()
1546 strm.opaque = Z_NULL; in DeflateBuffer()
1547 int ret = deflateInit(&strm, 1); in DeflateBuffer()
1552 uint32_t out_size = deflateBound(&strm, in_size); in DeflateBuffer()
1555 strm.avail_in = in_size; in DeflateBuffer()
1556 strm.next_in = const_cast<uint8_t*>(in_buffer); in DeflateBuffer()
1557 strm.avail_out = out_size; in DeflateBuffer()
1558 strm.next_out = &compressed_buffer[0]; in DeflateBuffer()
1559 ret = deflate(&strm, Z_FINISH); in DeflateBuffer()
1563 *compressed_data_size = out_size - strm.avail_out; in DeflateBuffer()
1564 deflateEnd(&strm); in DeflateBuffer()
1572 z_stream strm; in InflateBuffer() local
1575 strm.zalloc = Z_NULL; in InflateBuffer()
1576 strm.zfree = Z_NULL; in InflateBuffer()
1577 strm.opaque = Z_NULL; in InflateBuffer()
1578 strm.avail_in = in_size; in InflateBuffer()
1579 strm.next_in = const_cast<uint8_t*>(in_buffer); in InflateBuffer()
1580 strm.avail_out = expected_uncompressed_data_size; in InflateBuffer()
1581 strm.next_out = out_buffer; in InflateBuffer()
1584 inflateInit(&strm); in InflateBuffer()
1585 ret = inflate(&strm, Z_NO_FLUSH); in InflateBuffer()
1587 if (strm.avail_in != 0 || strm.avail_out != 0) { in InflateBuffer()
1590 inflateEnd(&strm); in InflateBuffer()