docs: def read_unsigned_var_int(file_obj):
      """Read a value using the unsigned, variable int encoding."""
      result = 0
      shift = 0
      while True:
          byte = struct.unpack(b"<B", file_obj.read(1))[0]
          result |= ((byte & 0x7F) << shift)
          if (byte & 0x80) == 0:
              break
          shift += 7
      return result