capa/capa/features
devs6186 c930891c21 rules: address code review feedback for bytes prefix index
- remove bytes_rules from _RuleFeatureIndex; bytes_prefix_index is the
  only structure needed for candidate selection
- build bytes_prefix_index directly in _index_rules_by_feature() instead
  of building bytes_rules then converting, removing one full pass
- add if -1 in bytes_prefix_index guard to avoid temporary object
  creation for the short-pattern fallback (almost never taken)
- remove assert isinstance(feature.value, bytes) checks in _match();
  add Bytes.value: bytes class-level annotation so mypy narrows the
  type without the runtime check
- remove cache structure compatibility block from cache.py per reviewer
  request to handle in a separate PR
- update test assertions from bytes_rules to bytes_prefix_index
2026-03-20 21:37:04 +01:00
..
com [copyright + license] Fix headers 2025-01-15 08:52:42 -07:00
extractors build(deps-dev): bump black from 25.12.0 to 26.3.0 (#2902) 2026-03-13 15:46:13 +01:00
freeze fix(freeze): use get_base_address in dumps_dynamic 2026-03-18 19:23:06 +01:00
__init__.py
address.py ida-explorer: fix TypeError when sorting locations with mixed address types (#2867) 2026-02-26 09:33:05 -07:00
basicblock.py [copyright + license] Fix headers 2025-01-15 08:52:42 -07:00
common.py rules: address code review feedback for bytes prefix index 2026-03-20 21:37:04 +01:00
file.py [copyright + license] Fix headers 2025-01-15 08:52:42 -07:00
insn.py [copyright + license] Fix headers 2025-01-15 08:52:42 -07:00