Expand description
Rule evaluation engine
This module contains the core evaluation logic for executing magic rules against file buffers to identify file types.
Modules§
- offset
- Offset resolution for magic rule evaluation
- operators
- Operator application for magic rule evaluation
- strength
- Strength calculation for magic rules
- types
- Type interpretation for reading and converting bytes from file buffers
Structs§
- Evaluation
Context - Context for maintaining evaluation state during rule processing
- Rule
Match - Result of evaluating a magic rule
Functions§
- evaluate_
rules - Evaluate a list of magic rules against a file buffer with hierarchical processing
- evaluate_
rules_ with_ config - Evaluate magic rules with a fresh context
- evaluate_
single_ rule - Evaluate a single magic rule against a file buffer