Off by one error? Why `+ 1` on index *and* `- 1` on offsets.length?