Instance Methodswift-crypto 3.15.1Crypto
withUnsafeBytes(_:)
Invokes the given closure with a buffer pointer covering the raw bytes of the code.
- iOS
- 13+
- macOS
- 10.15+
- Mac Catalyst
- 13+
- tvOS
- 13+
- visionOS
- 1.0+
- watchOS
- 6+
func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R Parameters
- body
A closure that takes a raw buffer pointer to the bytes of the code and returns the code.
Returns
The code, as returned from the body closure.