Instance MethodSystemPackage
seek(offset:from:)
Reposition the offset for the given file descriptor.
@discardableResult func seek(offset: Int64, from whence: FileDescriptor.SeekOrigin) throws -> Int64
Parameters
- offset
The new offset for the file descriptor.
- whence
The origin of the new offset.
Returns
The file’s offset location, in bytes from the beginning of the file.
Overview
The corresponding C function is lseek
.