Invokes the given closure with a buffer pointer covering the raw bytes of the digest.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Apple Crypto
Kit
Declaration
func withUnsafeBytes<R>(_ body: (Unsafe Raw Buffer Pointer) throws -> R) rethrows -> R
Parameters
body
A closure that takes a raw buffer pointer to the bytes of the digest and returns the digest.
Return Value
The digest, as returned from the body closure.