When requsting a specific range of data, the offsets must be calculated given the total size and chunksize.