Function self_encryption::seek_info
source · pub fn seek_info(file_size: usize, pos: usize, len: usize) -> SeekInfo
Expand description
Helper function for getting info needed to seek original file bytes from chunks.
It is used to first fetch chunks using the index_range
.
Then the chunks are passed into self_encryption::decrypt_range
together
with relative_pos
from the SeekInfo
instance, and the len
to be read.