Lines Matching refs:strm
1456 z_stream strm; in DeflateBuffer() local
1457 strm.zalloc = Z_NULL; in DeflateBuffer()
1458 strm.zfree = Z_NULL; in DeflateBuffer()
1459 strm.opaque = Z_NULL; in DeflateBuffer()
1460 int ret = deflateInit(&strm, 1); in DeflateBuffer()
1465 uint32_t out_size = deflateBound(&strm, in_size); in DeflateBuffer()
1468 strm.avail_in = in_size; in DeflateBuffer()
1469 strm.next_in = const_cast<uint8_t*>(in_buffer); in DeflateBuffer()
1470 strm.avail_out = out_size; in DeflateBuffer()
1471 strm.next_out = &compressed_buffer[0]; in DeflateBuffer()
1472 ret = deflate(&strm, Z_FINISH); in DeflateBuffer()
1476 *compressed_data_size = out_size - strm.avail_out; in DeflateBuffer()
1477 deflateEnd(&strm); in DeflateBuffer()
1485 z_stream strm; in InflateBuffer() local
1488 strm.zalloc = Z_NULL; in InflateBuffer()
1489 strm.zfree = Z_NULL; in InflateBuffer()
1490 strm.opaque = Z_NULL; in InflateBuffer()
1491 strm.avail_in = in_size; in InflateBuffer()
1492 strm.next_in = const_cast<uint8_t*>(in_buffer); in InflateBuffer()
1493 strm.avail_out = expected_uncompressed_data_size; in InflateBuffer()
1494 strm.next_out = out_buffer; in InflateBuffer()
1497 inflateInit(&strm); in InflateBuffer()
1498 ret = inflate(&strm, Z_NO_FLUSH); in InflateBuffer()
1500 if (strm.avail_in != 0 || strm.avail_out != 0) { in InflateBuffer()
1503 inflateEnd(&strm); in InflateBuffer()