b.e.ZLibEstimator(object) : class documentation

Part of bzrlib.estimate_compressed_size View In Hierarchy

Uses zlib.compressobj to estimate compressed size.
Method __init__ Create a new estimator.
Method add_content Undocumented
Method full Have we reached the target size?
Method _record_z_len Undocumented
def __init__(self, target_size, min_compression=2.0):
Create a new estimator.
Parameterstarget_sizeThe desired size of the compressed content.
min_compressionEstimated minimum compression. By default we assume that the content is 'text', which means a min compression of about 2:1.
def add_content(self, content):
Undocumented
def _record_z_len(self, count):
Undocumented
def full(self):
Have we reached the target size?
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.