getIndexes(_:range:)
Copies the indexes stored in the index path from the positions specified by the position range into the specified indexes.
Declaration
func getIndexes(_ indexes: UnsafeMutablePointer<Int>, range positionRange: NSRange)Parameters
- indexes:
Pointer to a C array of at least as many Nsuinteger objects as specified by the length of
positionRange. On return, the array holds the index path’s indexes. - positionRange:
A range of valid positions within the index path. If the location plus the length of
positionRangeis greater than the length of the index path, this method raises an Rangeexception.
Discussion
You must allocate the memory for the C array.