MCPcopy Create free account
hub / github.com/MearaY/StegaPy / _compress_data

Method _compress_data

StegaPy/StegaPy.py:195–197  ·  view source on GitHub ↗

使用 gzip 算法对数据进行压缩。

(self, data: bytes)

Source from the content-addressed store, hash-verified

193 return self.config
194
195 def _compress_data(self, data: bytes) -> bytes:
196 """使用 gzip 算法对数据进行压缩。"""
197 return gzip.compress(data)
198
199 def _decompress_data(self, data: bytes) -> bytes:
200 """使用 gzip 算法对数据进行解压,并包含基础的数据校验。"""

Callers 2

embed_dataMethod · 0.95
embed_dataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected