MonobjcMonobjc Documented Class Library
RangeOfDataOptionsRange Method (dataToFind, mask, searchRange)
NamespacesMonobjc.FoundationNSDataRangeOfDataOptionsRange(NSData, NSDataSearchOptions, NSRange)

Finds and returns the range of the first occurrence of the given data, within the given range, subject to given options.

Original signature is '- (NSRange)rangeOfData:(NSData *)dataToFind options:(NSDataSearchOptions)mask range:(NSRange)searchRange'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSRange RangeOfDataOptionsRange(
	NSData dataToFind,
	NSDataSearchOptions mask,
	NSRange searchRange
)
Public Overridable Function RangeOfDataOptionsRange ( _
	dataToFind As NSData, _
	mask As NSDataSearchOptions, _
	searchRange As NSRange _
) As NSRange
public:
virtual NSRange RangeOfDataOptionsRange(
	NSData^ dataToFind, 
	NSDataSearchOptions mask, 
	NSRange searchRange
)
Parameters
dataToFind (NSData)
The data for which to search. This value must not be nil.
mask (NSDataSearchOptions)
A mask specifying search options. The “NSDataSearchOptions” options may be specified singly or by combining them with the C bitwise OR operator.
searchRange (NSRange)
The range within the receiver in which to search for dataToFind. If this range is not within the receiver’s range of bytes, an NSRangeException raised.
Return Value
An NSRange structure giving the location and length of dataToFind within searchRange, modulo the options in mask. The range returned is relative to the start of the searched data, not the passed-in search range. Returns {NSNotFound, 0} if dataToFind is not found or is empty (@"").
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)