21
21
from zlib import Z_FINISH, Z_SYNC_FLUSH
23
23
# [max_repack, buffer_full, repacks_with_space, min_compression,
25
_stats = [0, 0, 0, 999, 0, 0, 0]
24
# total_bytes_in, total_bytes_out, avg_comp,
26
_stats = [0, 0, 0, 999, 0, 0, 0, 0, 0]
27
28
class ChunkWriter(object):
28
29
"""ChunkWriter allows writing of compressed data with a fixed size.