Type Alias

Data.Index

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

Declaration

typealias Data.Index = Int

See Also

Manipulating Indexes

var startIndex: Data.Index

The beginning index into the data.

var endIndex: Data.Index

The end 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.