Instance Method

index(before:)

Returns the index that immediately precedes the specified index.

Declaration

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

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.

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.