Finds and returns the range of the first occurrence of the given data, within the given range, subject to given options.
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The data for which to search.
A mask specifying search options. The
NSDataoptions may be specified singly or by combining them with the C bitwise
The range within the receiver in which to search for
data. If this range is not within the data object's range of bytes,
NSRange structure giving the location and length of
search, modulo the options in
mask. The range returned is relative to the start of the searched data, not the passed-in search range. Returns
, 0} if
data is not found or is empty.