Flushes all pending output into the compressed file.
The return value is the XOnZip error number. xzflush returns Z_OK if the flush parameter is Z_FINISH and all output could be flushed.
xzflush should be called only when strictly necessary because it can degrade compression.
file/in "gz" filehandle from xzopen. |
flush No Flush 0 Part Flush 1 / will be removed, use Sync Flush Sync Flush 2 Full Flush 3 Finish 4 |
Result |
file/out |