2026-07-25 12:39:32 +02:00
|
|
|
extension File {
|
|
|
|
|
/// The origin used by `Handle.seek(to:from:)`.
|
|
|
|
|
public enum SeekOrigin: Int32, Sendable {
|
2026-07-25 12:55:53 +02:00
|
|
|
/// Relative to the beginning of the file.
|
2026-07-25 12:39:32 +02:00
|
|
|
case start = 0
|
2026-07-25 12:55:53 +02:00
|
|
|
/// Relative to the current offset.
|
2026-07-25 12:39:32 +02:00
|
|
|
case current = 1
|
2026-07-25 12:55:53 +02:00
|
|
|
/// Relative to the end of the file.
|
2026-07-25 12:39:32 +02:00
|
|
|
case end = 2
|
|
|
|
|
}
|
|
|
|
|
}
|