MCPcopy Index your code
hub / github.com/python/cpython / compress

Method compress

Lib/zipfile/__init__.py:763–766  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

761 return struct.pack('<BBH', 9, 4, len(props)) + props
762
763 def compress(self, data):
764 if self._comp is None:
765 return self._init() + self._comp.compress(data)
766 return self._comp.compress(data)
767
768 def flush(self):
769 if self._comp is None:

Callers 15

compressFunction · 0.95
test_roundtrip_xzMethod · 0.95
test_roundtrip_aloneMethod · 0.95
test_roundtrip_rawMethod · 0.95
test_roundtrip_chunksMethod · 0.95
test_compressorMethod · 0.95
writeMethod · 0.45
_write_rawMethod · 0.45
compressFunction · 0.45

Calls 1

_initMethod · 0.95

Tested by 8

test_roundtrip_xzMethod · 0.76
test_roundtrip_aloneMethod · 0.76
test_roundtrip_rawMethod · 0.76
test_roundtrip_chunksMethod · 0.76
test_compressorMethod · 0.76