SeekExt

Trait SeekExt 

Source
pub trait SeekExt {
    // Required methods
    fn stream_length(&mut self) -> Result<u64>;
    fn align(&mut self, align: u64) -> Result<u64>;
}
Expand description

A trait to help to seek in a stream.

Required Methods§

Source

fn stream_length(&mut self) -> Result<u64>

Returns the length of the stream.

Source

fn align(&mut self, align: u64) -> Result<u64>

Aligns the current position to the given alignment. Returns the new position after alignment.

Implementors§

Source§

impl<T: Seek> SeekExt for T