As `to` is used for length calculation and `.slice()`-ing it is purposely not inclusive.

File `{ from: 50, to: 100, offset: any }`  have bytes `50` to `99`. But its length is `100 - 50` byte and `.slice(50, 100)` correctly returns what we want.