Home | History | Annotate | Download | only in atrace

Lines Matching refs:zs

334         z_stream zs;
338 bzero(&zs, sizeof(zs));
339 result = deflateInit(&zs, Z_DEFAULT_COMPRESSION);
351 zs.next_out = out;
352 zs.avail_out = bufSize;
356 if (zs.avail_in == 0) {
367 zs.next_in = in;
368 zs.avail_in = result;
372 if (zs.avail_out == 0) {
379 zs.avail_out = bufSize; // skip the final write
382 zs.next_out = out;
383 zs.avail_out = bufSize;
386 } while ((result = deflate(&zs, flush)) == Z_OK);
389 fprintf(stderr, "error deflating trace: %s\n", zs.msg);
392 if (zs.avail_out < bufSize) {
393 size_t bytes = bufSize - zs.avail_out;
401 result = deflateEnd(&zs);