(self, data)
| 119 | return self.compressor and self.decompressor |
| 120 | |
| 121 | def compress(self, data): |
| 122 | # the uncompressed length is already encoded in the header, so |
| 123 | # we remove it here |
| 124 | return self.compressor(data)[4:] |
| 125 | |
| 126 | def decompress(self, encoded_data, uncompressed_length): |
| 127 | return self.decompressor(int32_pack(uncompressed_length) + encoded_data) |
no outgoing calls