Instance Method

getIndexes(_:)

Copies the objects contained in the index path into indexes.

Declaration

func getIndexes(_ indexes: UnsafeMutablePointer<Int>)

Parameters

indexes

Pointer to a C array of objects of size at least the length of the index path. On return, the index path’s indexes.

Discussion

You must allocate the memory for the C array.

See Also

Working with Indexes

func index(atPosition: Int) -> Int

Provides the value at a particular node in the index path.

func getIndexes(UnsafeMutablePointer<Int>, range: NSRange)

Copies the indexes stored in the index path from the positions specified by the position range into the specified indexes.