Skip to main content

calc_pos

Function calc_pos 

Source
fn calc_pos(cur_pos: u64, nar_size: u64, seek_from: SeekFrom) -> Result<u64>
Expand description

For a given nar_size and current position, returns the position that seek_from would seek to.