Trait binary_stream::SeekStream
source · 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§
sourcefn seek(&mut self, to: u64) -> BinaryResult<u64>
fn seek(&mut self, to: u64) -> BinaryResult<u64>
Seek to a position.
sourcefn tell(&mut self) -> BinaryResult<u64>
fn tell(&mut self) -> BinaryResult<u64>
Get the current position.
sourcefn len(&self) -> BinaryResult<u64>
fn len(&self) -> BinaryResult<u64>
Get the length of the stream.