We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
update(data: Data)
1 parent 46a0d83 commit 78978baCopy full SHA for 78978ba
Sources/BLAKE3/BLAKE3.swift
@@ -53,7 +53,7 @@ public final class BLAKE3 {
53
/// hasher.update(data: data)
54
/// ```
55
public func update(data: Data) {
56
- update(bytes: data.withUnsafeBytes { $0 })
+ data.withUnsafeBytes { update(bytes: $0 ) }
57
}
58
59
/// Finalize the hasher and return the hash as a buffer of bytes.
0 commit comments