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

# subscript(_:)

Accesses the byte at the given offset in the memory region as a UInt8 value.

## Declaration

```swift
subscript(i: Int) -> UnsafeRawBufferPointer.Element { get }
```

## Parameters

- `i`: The offset of the byte to access. i must be in the range 0..<count.
