MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / decompress

Method decompress

cassandra/segment.py:126–127  ·  view source on GitHub ↗
(self, encoded_data, uncompressed_length)

Source from the content-addressed store, hash-verified

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)
128
129 def encode_header(self, buffer, payload_length, uncompressed_length, is_self_contained):
130 if payload_length > Segment.MAX_PAYLOAD_LENGTH:

Callers 3

decodeMethod · 0.95
lz4_decompressFunction · 0.80
decompressFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected