update

suspend fun MessageDigest.update(inputStream: KInputStream)

Extension function to update a MessageDigest with data from a KInputStream.

This function reads data from the provided KInputStream in chunks and updates the MessageDigest with the read data. It uses a buffer from the knioContext's byteBufferPool to read the data.

This function will consume the entire KInputStream but will not call KInputStream.close.

Parameters

inputStream

The KInputStream to read data from.

Throws

If an I/O error occurs.