pub trait SeekStream {
    // Required methods
    fn seek(&mut self, to: u64) -> BinaryResult<u64>;
    fn tell(&mut self) -> BinaryResult<u64>;
    fn len(&self) -> BinaryResult<u64>;
}
Expand description

Trait for streams that can seek.

Required Methods§

source

fn seek(&mut self, to: u64) -> BinaryResult<u64>

Seek to a position.

source

fn tell(&mut self) -> BinaryResult<u64>

Get the current position.

source

fn len(&self) -> BinaryResult<u64>

Get the length of the stream.

Implementors§