Copies the bytes in a range from the data into a buffer.
- iOS 7.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 8.0+
A buffer to copy the data into.
A range in the data to copy into the buffer. If the range is empty, this function will return 0 without copying anything. If the range is nil, as much data as will fit into
Number of bytes copied into the destination buffer.
If the count of the range is greater than
Memory then only the first
N bytes will be copied into the buffer.Precondition: The range must be within the bounds of the data. Otherwise
fatal is called.