pub fn analyze_batch(buffer: &[u8]) -> Result<(AnalysisResult, RiskAssessment)>Expand description
Performs a blocking batch analysis of the specified binary file.
Runs the parallel heuristic plugins under the hood, aggregates all findings into
an AnalysisResult, and passes the result to the scoring engine to generate a RiskAssessment.
§Example
use rbat::core::analyzer::analyze_batch;
let (result, assessment) = analyze_batch(b"some binary bytes").unwrap();
println!("Threat score: {}", assessment.score);§Errors
Returns RbatError if file reading, header parsing, or thread orchestration fails.