Search results

There are no results.

std.io.Seek

Seek

Trait for seeking to a given offset in a stream of bytes.

Required methods

seek

Show source code
Hide 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

std.fs.file.

ReadOnlyFile

impl Seek for ReadOnlyFile
std.fs.file.

ReadWriteFile

impl Seek for ReadWriteFile
std.fs.file.

WriteOnlyFile

impl Seek for WriteOnlyFile
std.io.

Buffer

impl Seek for Buffer