Class ByteBufChecksum.JdkByteBufChecksum
- java.lang.Object
-
- io.netty.handler.codec.compression.ByteBufChecksum
-
- io.netty.handler.codec.compression.ByteBufChecksum.JdkByteBufChecksum
-
- All Implemented Interfaces:
java.util.zip.Checksum
- Enclosing class:
- ByteBufChecksum
private static class ByteBufChecksum.JdkByteBufChecksum extends ByteBufChecksum
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.zip.Checksumchecksumprivate byte[]scratchBuffer
-
Constructor Summary
Constructors Constructor Description JdkByteBufChecksum(java.util.zip.Checksum checksum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.nio.ByteBuffergetSafeBuffer(ByteBuf b, int off, int len)longgetValue()voidreset()voidupdate(byte[] b, int off, int len)voidupdate(int b)voidupdate(ByteBuf b, int off, int len)-
Methods inherited from class io.netty.handler.codec.compression.ByteBufChecksum
wrapChecksum
-
-
-
-
Method Detail
-
update
public void update(int b)
-
update
public void update(ByteBuf b, int off, int len)
- Overrides:
updatein classByteBufChecksum- See Also:
Checksum.update(byte[], int, int)
-
getSafeBuffer
private java.nio.ByteBuffer getSafeBuffer(ByteBuf b, int off, int len)
-
update
public void update(byte[] b, int off, int len)
-
getValue
public long getValue()
-
reset
public void reset()
-
-