LZ4.Frame
Max size for each LZ4 block
4MB by default
64 KB
256 KB
1 MB
4 MB
LZ4 Frame Compression
LZ4 Frame Header Signature
LZ4 Frame Compress
stream to be compressed (won't be closed)
max size (before compress) per block
only True works
If a block is better not to compress, will use original data
Checksum for every block, not recommended
Checksum for whole content, recommended
If content size can be get, there's no reason to set it to False
LZ4 Frame Decompress
stream to be decompressed (won't be closed)