class Crowbar::Inspector::Analyzer

Overview

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

Defined in:

crowbar/inspector/analyzer.cr

Class Method Summary

Class Method Detail

def self.analyze_buffer(buffer : Buffer, filename : String | Nil = nil) : InspectionReport #

Analyzes a standalone buffer or file


def self.analyze_entropy_blocks(bytes : Bytes, num_blocks : Int32 = 16) : Array(EntropyBlock) #

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)


def self.detect_boundaries(buffer : Buffer, format_sym : Symbol | Nil) : Array(ChunkBoundary) #

Detects structural chunk boundaries for known formats