Table of Contents

Delegate PluginFiles.ChecksumCheckDelegate

Namespace
Hi3Helper.Plugin.Core.Utility
Assembly
Hi3Helper.Plugin.Core.dll

Delegate for checking if the asset's checksum matches the expected value.

public delegate Task<bool> PluginFiles.ChecksumCheckDelegate(Stream stream, byte[] checksum, PluginFiles.FileReadProgressDelegate? readProgress = null)

Parameters

stream Stream

The stream of the file to check

checksum byte[]

The checksum in which the file will be checked

readProgress PluginFiles.FileReadProgressDelegate
Delegate for checking if the asset's checksum matches the expected value.

Returns

Task<bool>

True if the checksum matches, Otherwise, False.