---
title: endIndex
framework: swift
role: symbol
role_heading: Instance Property
path: swift/unsaferawbufferpointer/endindex
---

# endIndex

The “past the end” position—that is, the position one greater than the last valid subscript argument.

## Declaration

```swift
var endIndex: UnsafeRawBufferPointer.Index { get }
```

## Discussion

Discussion The endIndex property of an UnsafeRawBufferPointer instance is always identical to count.
