Lines Matching refs:strm

404   z_stream strm;  in TryReconstruction()  local
405 strm.zalloc = Z_NULL; in TryReconstruction()
406 strm.zfree = Z_NULL; in TryReconstruction()
407 strm.opaque = Z_NULL; in TryReconstruction()
408 strm.avail_in = uncompressed_data_.size(); in TryReconstruction()
409 strm.next_in = uncompressed_data_.data(); in TryReconstruction()
410 int ret = deflateInit2(&strm, level, METHOD, WINDOWBITS, MEMLEVEL, STRATEGY); in TryReconstruction()
419 strm.avail_out = buffer.size(); in TryReconstruction()
420 strm.next_out = buffer.data(); in TryReconstruction()
421 ret = deflate(&strm, Z_FINISH); in TryReconstruction()
427 size_t compressed_size = buffer.size() - strm.avail_out; in TryReconstruction()
430 deflateEnd(&strm); in TryReconstruction()
435 deflateEnd(&strm); in TryReconstruction()
1299 z_stream strm; in Initialize() local
1300 strm.zalloc = Z_NULL; in Initialize()
1301 strm.zfree = Z_NULL; in Initialize()
1302 strm.opaque = Z_NULL; in Initialize()
1303 strm.avail_in = sz - pos; in Initialize()
1304 strm.next_in = file_content_.data() + pos; in Initialize()
1308 int ret = inflateInit2(&strm, -15); in Initialize()
1318 strm.avail_out = allocated - uncompressed_len; in Initialize()
1319 strm.next_out = uncompressed_data.data() + uncompressed_len; in Initialize()
1320 ret = inflate(&strm, Z_NO_FLUSH); in Initialize()
1322 LOG(WARNING) << "Inflate failed [" << strm.msg << "] at offset [" << chunk_offset in Initialize()
1326 uncompressed_len = allocated - strm.avail_out; in Initialize()
1327 if (strm.avail_out == 0) { in Initialize()
1333 raw_data_len = sz - strm.avail_in - pos; in Initialize()
1334 inflateEnd(&strm); in Initialize()