ltk::files

Function read_range

Source
pub fn read_range<M: Send + 'static>(
    path: impl Into<PathBuf>,
    offset: u64,
    length: u64,
    sender: &ChannelSender<M>,
    done: impl FnOnce(Result<Vec<u8>>) -> M + Send + 'static,
)
Expand description

Up to length bytes of the file from offset; fewer at its end, none past it.