MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / lookup_table_value

Method lookup_table_value

python/variable.py:614–627  ·  view source on GitHub ↗

Create a PossibleValueSet object for a value which is a member of a lookup table. :param list(LookupTableEntry) lookup_table: List of table entries :param dict of (int, int) mapping: Mapping used for resolution :rtype: PossibleValueSet

(lookup_table, mapping)

Source from the content-addressed store, hash-verified

612
613 @staticmethod
614 def lookup_table_value(lookup_table, mapping) -> 'PossibleValueSet':
615 """
616 Create a PossibleValueSet object for a value which is a member of a
617 lookup table.
618
619 :param list(LookupTableEntry) lookup_table: List of table entries
620 :param dict of (int, int) mapping: Mapping used for resolution
621 :rtype: PossibleValueSet
622 """
623 result = PossibleValueSet()
624 result._type = RegisterValueType.LookupTableValue
625 result._table = lookup_table
626 result._mapping = mapping
627 return result
628
629
630@dataclass(frozen=True)

Callers

nothing calls this directly

Calls 1

PossibleValueSetClass · 0.70

Tested by

no test coverage detected