@woutervanveen Ah, gotcha. You’ll want to look into how varint encoding works.
Here’re two related posts:
- Sqlite varint decoding Stage #SZ4 - #2 by andy1li
- How to parse variable sized integer from metadata log - #5 by andy1li
Let me know if it still does not make sense after that.