Creates a data object that holds a given number of bytes from a given buffer.
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A buffer containing data for the new object. If
bytesmust point to a memory block allocated with
The number of bytes to hold from
bytes. This value must not exceed the length of
YES, the returned object takes ownership of the
bytespointer and frees it on deallocation.