class
Crowbar::Inspector::Analyzer
- Crowbar::Inspector::Analyzer
- Reference
- Object
Overview
Analyzes buffer structures, calculates Shannon entropy distributions, and generates session mutation heatmaps.
Defined in:
crowbar/inspector/analyzer.crClass Method Summary
-
.analyze_buffer(buffer : Buffer, filename : String | Nil = nil) : InspectionReport
Analyzes a standalone buffer or file
-
.analyze_entropy_blocks(bytes : Bytes, num_blocks : Int32 = 16) : Array(EntropyBlock)
Analyzes entropy distribution across N uniform blocks
-
.analyze_session(session : Session, session_dir : String = Session.default_dir) : InspectionReport
Analyzes a stateful session and generates a mutation heatmap
-
.calculate_entropy(bytes : Bytes) : Float64
Calculates Shannon entropy in bits per byte (0.0 to 8.0)
-
.detect_boundaries(buffer : Buffer, format_sym : Symbol | Nil) : Array(ChunkBoundary)
Detects structural chunk boundaries for known formats
Class Method Detail
Analyzes a standalone buffer or file
Analyzes entropy distribution across N uniform blocks
def self.analyze_session(session : Session, session_dir : String = Session.default_dir) : InspectionReport
#
Analyzes a stateful session and generates a mutation heatmap
def self.calculate_entropy(bytes : Bytes) : Float64
#
Calculates Shannon entropy in bits per byte (0.0 to 8.0)
Detects structural chunk boundaries for known formats