std.io.Seek
Seek
Trait for seeking to a given offset in a stream of bytes.
Required methods
seek
Show source codeHide source code
fn pub mut seek(position: Int) -> Result[Int, Error]
fn pub mut seek(position: Int) -> Result[Int, Error]
Seeks to the given byte offset, returning the new offset.
If position
is negative, seeking is performed in reverse order relative to
the end.
Implementations
ReadOnlyFile
impl Seek for ReadOnlyFile
ReadWriteFile
impl Seek for ReadWriteFile
WriteOnlyFile
impl Seek for WriteOnlyFile
Buffer
impl Seek for Buffer