[][src]Trait chacha::SeekableKeyStream

pub trait SeekableKeyStream: KeyStream {
    fn seek_to(&mut self, byte_offset: u64) -> Result<(), Error>;
}

KeyStreams that allow efficiently moving to positions in the stream

Required methods

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.

Loading content...

Implementors

impl SeekableKeyStream for ChaCha
[src]

Loading content...