Copies a range of bytes from the data object into a given buffer.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
A buffer into which to copy data.
The range of bytes in the receiver's data to copy to
buffer. The range must lie within the range of bytes of the receiver's data.
range isn’t within the receiver’s range of bytes, an
range is raised.