Array
@frozen
public extension Array where Element: Checksumable
-
On completion, returns a
ChecksumResult
for everyChecksumable
in this array using the specified digest algorithm.Declaration
Swift
func checksum(algorithm: DigestAlgorithm, chunkSize: Chunksize = .normal, queue: DispatchQueue = .main, progress: ProgressHandler? = nil, completion: @escaping MultipleCompletionHandler)
Parameters
algorithm
The digest algorithm to use.
chunkSize
The processing buffer’s size (mostly relevant for large data computing)
queue
The dispatch queue used for processing.
progress
The closure to call to signal progress.
completion
The closure to call upon completion containing the result.