sparsefwrite
w = sparsefwrite(zbuf, zbufsize - z->avail_out, fp);
w = sparsefwrite(zbuf, Zout.pos, fp);
nw = sparsefwrite(buf, wl, fp);