addCRC32

fun ByteBuf.addCRC32(startIndex: Int): Int

Adds a 32-bit checksum of the buffer's slice, computed by starting from startIndex and ending at io.netty.buffer.ByteBuf.writerIndex.

Return

the checksum of this buffer's slice.

Parameters

startIndex

the writer index to begin computing the checksum from