class DisciplineZerozip: def __init__(self, block_size=4096): self.block_size = block_size
return bytes(decompressed_data)
def _is_zero_filled(self, block): return all(byte == 0 for byte in block)
Linux Sysadmins – Linux Guides, Nix Guides, Tutorials, Tips & Tricks.
class DisciplineZerozip: def __init__(self, block_size=4096): self.block_size = block_size
return bytes(decompressed_data)
def _is_zero_filled(self, block): return all(byte == 0 for byte in block)