Creates a data buffer with memory content without copying the bytes.
- iOS 7.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 8.0+
A pointer to the bytes.
The size of the bytes.
Specifies the mechanism to free the indicated buffer, or
If the result is mutated and is not a unique reference, then the
Data will still follow copy-on-write semantics. In this case, the copy will use its own deallocator. Therefore, it is usually best to only use this initializer when you either enforce immutability with
let or ensure that no other references to the underlying data are formed.