Top Description Fields Constructors Methods
io.netty5.handler.codec.compression

pack-priv Class Crc32c

extends BufferChecksum
Class Inheritance
Imports
java.util.zip.Checksum

Implements CRC32-C as defined in: "Optimization of Cyclic Redundancy-CHeck Codes with 24 and 32 Parity Bits", IEEE Transactions on Communications 41(6): 883-892 (1993). The implementation of this class has been sourced from the Appendix of RFC 3309, but with masking due to Java not being able to support unsigned types.

Field Summary

Modifier and TypeField and Description
private static final int
private static final int[]
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static int
crc32c(int crc, int b)

Inherited from io.netty5.handler.codec.compression.BufferChecksum:
getValueresetupdateupdateupdate

Field Detail

BYTE_MASKback to summary
private static final int BYTE_MASK
CRC_TABLEback to summary
private static final int[] CRC_TABLE
LONG_MASKback to summary
private static final long LONG_MASK

Constructor Detail

Crc32cback to summary
pack-priv Crc32c()

Method Detail

crc32cback to summary
private static int crc32c(int crc, int b)