update

fun update(data: ByteArray, offset: Int = 0, len: Int = data.size - offset): Int

Updates the checksum with the data ByteArray in the range offset and len. And returns the updated checksum.