withUnsafeBytes(_:)
Calls the given closure with a pointer to the underlying bytes of the region’s contiguous storage.
Declaration
func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultTypeCalls the given closure with a pointer to the underlying bytes of the region’s contiguous storage.
func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType