Returns a new data object containing the data object's bytes that fall within the limits specified by a given range.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The range in the receiver from which to get the data. If this range is not within the data object's range of bytes,
A data object containing the receiver’s bytes that fall within the limits specified by
A sample using this method can be found in Working With Binary Data.