netty5/codec/src
Ning Xie a304d61b26
fix snappy crc32c checksum (#10048)
Motivation:

The Snappy crc32c checksum produced by SnappyFrameEncoder maybe failed to be validated on other languages snappy decoder, such as golang/snappy.

Modification: 

- make the 4-byte cast later after the mask operation. Because whether retaining the higher 4-7 bytes in a long java type will make difference in (checksum >> 15 | checksum << 17) + 0xa282ead8 result.

Result:

Checksum correctly calculated
2020-02-27 09:03:50 +01:00
..
main/java/io/netty/handler/codec fix snappy crc32c checksum (#10048) 2020-02-27 09:03:50 +01:00
test fix snappy crc32c checksum (#10048) 2020-02-27 09:03:50 +01:00