| 831 | return None |
| 832 | |
| 833 | def _get_all_semantic_flag_groups(self, ctxt, count): |
| 834 | try: |
| 835 | sem_groups = list(self._semantic_flag_groups_by_index.keys()) |
| 836 | count[0] = len(sem_groups) |
| 837 | group_buf = (ctypes.c_uint * len(sem_groups))() |
| 838 | for i in range(0, len(sem_groups)): |
| 839 | group_buf[i] = sem_groups[i] |
| 840 | result = ctypes.cast(group_buf, ctypes.c_void_p) |
| 841 | self._pending_reg_lists[result.value] = (result, group_buf) |
| 842 | return result.value |
| 843 | except KeyError: |
| 844 | log_error(traceback.format_exc()) |
| 845 | count[0] = 0 |
| 846 | return None |
| 847 | |
| 848 | def _get_flag_role(self, ctxt, flag: FlagIndex, sem_class: Optional[SemanticClassName] = None): |
| 849 | if sem_class in self._semantic_flag_classes: |