def read_bool(self): val, self._curr_cursor = _DecodeSignedVarint32(self._data, self._curr_cursor) return val != 0
def read_field_num(self): tag, self._curr_cursor = _DecodeSignedVarint32(self._data, self._curr_cursor) return wire_format.UnpackTag(tag)[0]