How to parse variable sized integer from metadata log

Hi @pdtran3k6, here’s an example illustrating how to parse 0x8147 as decimal 199.


how does one know when to stop reading a variable sized thing

Stop when a byte has a leading 0.

0x8201 has two bytes:

  • 1000 0010: continue
  • 0000 0001: stop