Trait keystream::SeekableKeyStream

source ·
pub trait SeekableKeyStream: KeyStream {
    // Required method
    fn seek_to(&mut self, byte_offset: u64) -> Result<(), Error>;
}
Expand description

KeyStreams that allow efficiently moving to positions in the stream

Required Methods§

source

fn seek_to(&mut self, byte_offset: u64) -> Result<(), Error>

Seeks to a position, with byte resolution, in the keystream.

Returns an error if the seek would pass the end of the keystream.

Implementors§