使用 gzip 算法对数据进行压缩。
(self, data: bytes)
| 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 算法对数据进行解压,并包含基础的数据校验。""" |
no outgoing calls
no test coverage detected