Class StandardCRC32Digest
- java.lang.Object
-
- org.apache.bookkeeper.proto.checksum.StandardCRC32Digest
-
- All Implemented Interfaces:
CRC32DigestManager.CRC32Digest
class StandardCRC32Digest extends java.lang.Object implements CRC32DigestManager.CRC32Digest
Regular implementation of CRC32 digest that makes use ofCRC32
class.
-
-
Constructor Summary
Constructors Constructor Description StandardCRC32Digest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getValueAndReset()
void
update(byte[] buffer, int offset, int len)
void
update(io.netty.buffer.ByteBuf buf, int offset, int len)
-
-
-
Method Detail
-
getValueAndReset
public long getValueAndReset()
- Specified by:
getValueAndReset
in interfaceCRC32DigestManager.CRC32Digest
-
update
public void update(io.netty.buffer.ByteBuf buf, int offset, int len)
- Specified by:
update
in interfaceCRC32DigestManager.CRC32Digest
-
update
public void update(byte[] buffer, int offset, int len)
- Specified by:
update
in interfaceCRC32DigestManager.CRC32Digest
-
-