Passing a null argument to a method in this class will cause
a NullPointerException to be thrown.
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public void | |
| public void | update(int b)
Implements java. Updates the CRC-32 checksum with the specified byte (the low eight bits of the argument b). |
| public void | update(byte[] b, int off, int len)
Implements java. Updates the CRC-32 checksum with the specified array of bytes. |
| public void | update(ByteBuffer buffer)
Overrides default java. Updates the CRC-32 checksum with the bytes from the specified buffer. |
| private static native int | |
| private static int | |
| private static native int | |
| private static void | |
| private static int | |
| private static native int | |
| private static void |
| crc | back to summary |
|---|---|
| private int crc | |
| CRC32 | back to summary |
|---|---|
| public CRC32() Creates a new CRC32 object. | |
| getValue | back to summary |
|---|---|
| public long getValue() Implements java. Returns CRC-32 value.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements java. Resets CRC-32 to initial value.
| |
| update | back to summary |
|---|---|
| public void update(int b) Implements java. Updates the CRC-32 checksum with the specified byte (the low eight bits of the argument b).
| |
| update | back to summary |
|---|---|
| public void update(byte[] b, int off, int len) Implements java. Updates the CRC-32 checksum with the specified array of bytes.
| |
| update | back to summary |
|---|---|
| public void update(ByteBuffer buffer) Overrides default java. Updates the CRC-32 checksum with the bytes from the specified buffer. The checksum is updated with the remaining bytes in the buffer, starting at the buffer's position. Upon return, the buffer's position will be updated to its limit; its limit will not have been changed.
| |
| update | back to summary |
|---|---|
private static native int update(int crc, int b)
| |
| updateByteBuffer | back to summary |
|---|---|
| private static int updateByteBuffer(int alder, long addr, int off, int len) | |
| updateByteBuffer0 | back to summary |
|---|---|
private static native int updateByteBuffer0(int alder, long addr, int off, int len)
| |
| updateByteBufferCheck | back to summary |
|---|---|
| private static void updateByteBufferCheck(long addr) | |
| updateBytes | back to summary |
|---|---|
| private static int updateBytes(int crc, byte[] b, int off, int len) | |
| updateBytes0 | back to summary |
|---|---|
private static native int updateBytes0(int crc, byte[] b, int off, int len)
| |
| updateBytesCheck | back to summary |
|---|---|
| private static void updateBytesCheck(byte[] b, int off, int len) | |