(byts)
| 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 |