withUnsafeMutableBufferPointer(_:)
Calls the given closure with a pointer to the object’s mutable contiguous storage.
Declaration
mutating func withUnsafeMutableBufferPointer<R>(_ body: (inout UnsafeMutableBufferPointer<Self.Element>) throws -> R) rethrows -> RParameters
- body:
A closure that receives an Unsafemutablebufferpointer to the sequence’s contiguous storage.