updateWithRead

inline fun updateWithRead(read: (buffer: ByteArray) -> Int): Int

Updates the checksum with the read function. And returns the updated checksum.