Skip to main content

calc_position

Function calc_position 

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

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