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

Function lz4_decompress

cassandra/connection.py:91–93  ·  view source on GitHub ↗
(byts)

Source from the content-addressed store, hash-verified

89 return int32_pack(len(byts)) + lz4_block.compress(byts)[4:]
90
91 def lz4_decompress(byts):
92 # flip from big-endian to little-endian
93 return lz4_block.decompress(byts[3::-1] + byts[4:])
94
95 locally_supported_compressions['lz4'] = (lz4_compress, lz4_decompress)
96 segment_codec_lz4 = SegmentCodec(lz4_compress, lz4_decompress)

Callers

nothing calls this directly

Calls 1

decompressMethod · 0.80

Tested by

no test coverage detected