Modifier and Type | Method and Description |
---|---|
public long | |
public void | |
public void | update(int
the byte to update the checksum with b)Updates the current checksum with the specified byte. |
public default void | update(byte[]
the array of bytes to update the checksum with b)Updates the current checksum with the specified array of bytes. |
public void | update(byte[]
the byte array to update the checksum with b, int the start offset of the data off, int the number of bytes to use for the update len)Updates the current checksum with the specified array of bytes. |
public default void | update(ByteBuffer
the ByteBuffer to update the checksum with buffer)Updates the current checksum with the bytes from the specified buffer. |
getValue | back to summary |
---|---|
public long getValue() Returns the current checksum value.
|
reset | back to summary |
---|---|
public void reset() Resets the checksum to its initial value. |
update | back to summary |
---|---|
public void update(int b) Updates the current checksum with the specified byte.
|
update | back to summary |
---|---|
public default void update(byte[] b) Updates the current checksum with the specified array of bytes. Implementation Specification This default implementation is equal to calling
|
update | back to summary |
---|---|
public void update(byte[] b, int off, int len) Updates the current checksum with the specified array of bytes.
|
update | back to summary |
---|---|
public default void update(ByteBuffer buffer) Updates the current 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. API Note For best performance with DirectByteBuffer and other ByteBuffer implementations without a backing array implementers of this interface should override this method. Implementation Specification The default implementation has the following behavior.
For ByteBuffers not backed by an accessible byte array.
|