withUnsafeMutableBytes(_:)

Calls the given closure with a mutable pointer to the underlying bytes of the region’s contiguous storage.

Declaration

func withUnsafeMutableBytes<ResultType>(_ body: (UnsafeMutableRawBufferPointer) throws -> ResultType) rethrows -> ResultType