---
title: "subscript(_:)"
framework: swift
role: symbol
role_heading: Instance Subscript
path: "swift/unsaferawbufferpointer/subscript(_:)-58r3z"
---

# subscript(_:)

Accesses the bytes in the specified memory region.

## Declaration

```swift
subscript(bounds: Range<Int>) -> UnsafeRawBufferPointer.SubSequence { get }
```

## Parameters

- `bounds`: The range of byte offsets to access. The upper and lower bounds of the range must be in the range 0...count.
