withUnsafeBufferPointer(_:)
Calls a closure with a pointer to the object’s contiguous storage.
Declaration
func withUnsafeBufferPointer<R>(_ body: (UnsafeBufferPointer<Self.Element>) throws -> R) rethrows -> RParameters
- body:
A closure that receives an Unsafebufferpointer to the sequence’s contiguous storage.