---
title: "subscript(_:)"
framework: swift
role: symbol
role_heading: Instance Subscript
path: "swift/unsafemutablerawbufferpointer/subscript(_:)-znv7"
---

# subscript(_:)

Accesses the bytes in the specified memory region.

## Declaration

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

## Parameters

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