fn calc_position( cur_pos: u64, blob_len: u64, seek_from: SeekFrom, ) -> Result<u64>
For a given blob length and current position, returns the position that seek_from would seek to.