endIndex

The end Index into the data.

iOS
8.0+
macOS
10.10+
tvOS
9.0+
watchOS
2.0+
var endIndex: Data.Index { get }

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