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

pack-priv final Class Crc32

extends Object
Class Inheritance

A CRC32 calculator.

Field Summary

Modifier and TypeField and Description
private int
crc

The current CRC.

private static final int[]
crc32Table

A static CRC lookup table.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The current CRC.
getCRC
()

public void
updateCRC(final int
The value to update the CRC with
value
)

Update the CRC with a single byte.

public void
updateCRC(final int
The value to update the CRC with
value
,
int
The number of bytes
count
)

Update the CRC with a sequence of identical bytes.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

crcback to summary
private int crc

The current CRC.

crc32Tableback to summary
private static final int[] crc32Table

A static CRC lookup table.

Constructor Detail

Crc32back to summary
pack-priv Crc32()

Method Detail

getCRCback to summary
public int getCRC()
Returns:int

The current CRC.

updateCRCback to summary
public void updateCRC(final int value)

Update the CRC with a single byte.

Parameters
value:int

The value to update the CRC with

updateCRCback to summary
public void updateCRC(final int value, int count)

Update the CRC with a sequence of identical bytes.

Parameters
value:int

The value to update the CRC with

count:int

The number of bytes