Interface SeekerSync
Index
Methods
Methods
seekSync
- seek
Sync (offset, whence): number Seek sets the offset for the next
readSync()orwriteSync()to offset, interpreted according towhence:Startmeans relative to the start of the file,Currentmeans relative to the current offset, andEndmeans relative to the end.Seeking to an offset before the start of the file is an error. Seeking to any positive offset is legal, but the behavior of subsequent I/O operations on the underlying object is implementation-dependent.
It returns the updated offset.
Parameters
- offset: number | bigint
- whence: SeekMode
Returns number
An abstract interface which when implemented provides an interface to seek within an open file/resource synchronously.