withUnsafeMutableBytes(_:)
Performs the given closure with an unsafe pointer to the underlying bytes of the data buffer.
Declaration
func withUnsafeMutableBytes<R, E>(_ body: (UnsafeMutableRawBufferPointer) throws(E) -> R) throws(E) -> R where E : ErrorParameters
- body:
The closure to perform with the pointer.