lz4-java
lz4-java copied to clipboard
Fix the implementation of StreamingXXHash32.asChecksum()
trafficstars
In the Checksum view, we only keep the last 28 bits of the hash instead of the 32 bits of the full hash.
The result is that the 4 first bits are always set to 0 in LZ4Block*Stream.
This PR:
- fixes the
Checksumview inStreamingXXHash32 - keeps the current behaviour in
LZ4Block*Streamto avoid breaking existing data built with this library