Skip to main content

Module evaluator

Module evaluator 

Source
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§

EvaluationContext
Context for maintaining evaluation state during rule processing
RuleMatch
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