class

Crowbar::Inspector::Analyzer

Inherits Reference < Object

Analyzes buffer structures, calculates Shannon entropy distributions, and generates session mutation heatmaps.

Class methods

analyze_buffer(buffer : Buffer, filename : String | Nil = nil) : InspectionReport

Analyzes a standalone buffer or file

Source
analyze_entropy_blocks(bytes : Bytes, num_blocks : Int32 = 16) : Array(EntropyBlock)

Analyzes entropy distribution across N uniform blocks

Source
analyze_session(session : Session, session_dir : String = Session.default_dir) : InspectionReport

Analyzes a stateful session and generates a mutation heatmap

Source
calculate_entropy(bytes : Bytes) : Float64

Calculates Shannon entropy in bits per byte (0.0 to 8.0)

Source
detect_boundaries(buffer : Buffer, format_sym : Symbol | Nil) : Array(ChunkBoundary)

Detects structural chunk boundaries for known formats

Source