diff options
| author | Stuart Cardall <developer@it-offshore.co.uk> | 2018-08-08 19:19:20 +0000 |
|---|---|---|
| committer | Andy Postnikov <apostnikov@gmail.com> | 2018-08-10 12:14:16 +0300 |
| commit | 309999be119ba2dd171a38e98ca8b6fa3c02b2d6 (patch) | |
| tree | 9857433239d3b5d628eafb02f241e2255d2b7da0 /main/java-common | |
| parent | 82c3d23886f12997499ea4a1326dc30f1c6258be (diff) | |
| download | aports-309999be119ba2dd171a38e98ca8b6fa3c02b2d6.tar.bz2 aports-309999be119ba2dd171a38e98ca8b6fa3c02b2d6.tar.xz | |
community/py-lz4: upgrade to 2.1.0
This release changes the handling of errors for block decompression when
uncompressed_size > 0. In this case, we no longer check that the uncompressed
data has exactly the size specified by uncompressed_size: this argument is
now used as an upper bound.
In addition, we introduce a new exception: LZ4BlockError which is raised
whenever the LZ4 library fails.
These two changes together allow "guessing" of the uncompressed data size:
simply set uncompressed_size to a number and try decompress, and catch
LZ4BlockError. If LZ4BlockError is raised, increase uncompressed_size
and try again.
See the documentation for more details and examples:
http://python-lz4.readthedocs.io/en/stable/lz4.block.html
Diffstat (limited to 'main/java-common')
0 files changed, 0 insertions, 0 deletions
