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

Function lz4_compress

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

Source from the content-addressed store, hash-verified

85 # functions to handle that
86
87 def lz4_compress(byts):
88 # write length in big-endian instead of little-endian
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

Callers

nothing calls this directly

Calls 1

compressMethod · 0.80

Tested by

no test coverage detected