---
title: "setOffset(_:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/lowlevelbufferslice/setoffset(_:)"
---

# setOffset(_:)

Updates the byte offset of this slice.

## Declaration

```swift
mutating func setOffset(_ offset: Int) throws(LowLevelRenderContextError)
```

## Parameters

- `offset`: The new byte offset into buffer at which this slice begins.

## Discussion

Discussion Throws LowLevelRenderContextError if the new offset falls outside the buffer’s allocated capacity. note: LowLevelRenderContextError if the new offset falls outside the buffer’s allocated capacity.
