---
title: FileDescriptor.SeekOrigin
framework: system
role: symbol
role_heading: Structure
path: system/filedescriptor/seekorigin
---

# FileDescriptor.SeekOrigin

Options for specifying what a file descriptor’s offset is relative to.

## Declaration

```swift
@frozen struct SeekOrigin
```

## Topics

### Creating a Seek Origin

- [current](system/filedescriptor/seekorigin/current.md)
- [end](system/filedescriptor/seekorigin/end.md)
- [nextHole](system/filedescriptor/seekorigin/nexthole.md)
- [nextData](system/filedescriptor/seekorigin/nextdata.md)
- [start](system/filedescriptor/seekorigin/start.md)

### Debugging

- [description](system/filedescriptor/seekorigin/description.md)
- [debugDescription](system/filedescriptor/seekorigin/debugdescription.md)

### Working with C APIs

- [init(rawValue:)](system/filedescriptor/seekorigin/init(rawvalue:).md)
- [rawValue](system/filedescriptor/seekorigin/rawvalue.md)

### Default Implementations

- [CustomDebugStringConvertible Implementations](system/filedescriptor/seekorigin/customdebugstringconvertible-implementations.md)
- [CustomStringConvertible Implementations](system/filedescriptor/seekorigin/customstringconvertible-implementations.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Changing a File’s Offset

- [seek(offset:from:)](system/filedescriptor/seek(offset:from:).md)
