Closed hexuallyactive closed 5 years ago
Thanks @hexuallyactive, good catch! The multiply-by-two was certainly missing there. And it looks like the offset array has an additional item at the end, so you don't have to worry about offsets[dbid + 1]
getting out of bounds.
I've been having issues with this throwing out of bounds exceptions. Somewhere (can't remember which repo) I saw that the offsets were quite different, so I updated the offset method here to match.