Instance Property

endIndex

The end index into the data.

Declaration

var endIndex: Data.Index { get }

Discussion

This is the “one-past-the-end” position, and will always be equal to the count.

See Also

Manipulating Indexes

typealias Data.Index

A type used to indicate a position in a data's buffer.

var startIndex: Data.Index

The beginning index into the data.

func index(Int, offsetBy: Int) -> Int

Returns an index that is the specified distance from the given index.

func index(after: Data.Index) -> Data.Index

Returns the index that immediately follows the specified index.

func index(before: Data.Index) -> Data.Index

Returns the index that immediately precedes the specified index.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software