Structure

NSData.SearchOptions

Options for method used to search data objects.

Overview

These options are used with the range(of:options:in:) method.

Topics

Constants

static var backwards: NSData.SearchOptions

Search from the end of the data object.

static var anchored: NSData.SearchOptions

Search is limited to start (or end, if searching backwards) of the data object.

Relationships

Conforms To

See Also

Finding Data

func subdata(with: NSRange)

Returns a new data object containing the data object's bytes that fall within the limits specified by a given range.

func range(of: Data, options: NSData.SearchOptions = [], in: NSRange)

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