Initializes a newly allocated data object by adding the given number of bytes from the 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
true, the returned object takes ownership of the
bytespointer and frees it on deallocation.