class
Crowbar::Engine
- Crowbar::Engine
- Reference
- Object
Overview
Central transformation engine orchestrating PRNG state, scoped targets, structure-preserving rules, adaptive mutator selection, and evolutionary feedback.
Defined in:
crowbar/engine.crConstructors
Class Method Summary
-
.detect_format?(buffer : Buffer) : Symbol | Nil
Auto-detects format/protocol of the given buffer
Instance Method Summary
- #add_fixup(&block : Buffer -> Nil)
- #add_rule(rule : Rule)
- #add_sample(sample : Buffer | Bytes | String) : Nil
- #add_scope(scope : Scope)
- #context : Context
- #detect_format?(buffer : Buffer) : Symbol | Nil
- #evolution : Evolution::Manager
- #fixups : Array(Proc(Buffer, Nil))
- #frame?(name : String | Symbol) : FrameDefinition | Nil
- #frames : Hash(String, FrameDefinition)
-
#fuzz(input : Buffer | Bytes | String) : Buffer
Convenient alias
-
#fuzz_frame(name : String | Symbol) : Buffer
Fuzzes a declarative binary frame, automatically recomputing lengths and checksums
-
#generate(name : String | Symbol, start_symbol : Symbol = :start) : String
Generates a string using a defined generative grammar
- #grammar?(name : String | Symbol) : GrammarDefinition | Nil
- #grammars : Hash(String, GrammarDefinition)
- #harvest(text : String) : Array(String)
-
#harvest_feedback(text : String) : Array(String)
Extracts diagnostic tokens from error messages into active dictionary
- #last_metadata : Metadata | Nil
- #pattern : Pattern
- #pattern=(pattern : Pattern)
- #pool : MutatorPool
- #register_frame(frame : FrameDefinition)
- #register_grammar(grammar : GrammarDefinition)
-
#report(candidate : Buffer | Bytes | String, fitness : Float64, feature : String | Nil = nil, coverage_hash : UInt64 | Nil = nil)
Report feedback to evolutionary optimizer with optional feature & coverage hash telemetry
- #report(candidate : Buffer | Bytes | String, success : Bool, feature : String | Nil = nil, coverage_hash : UInt64 | Nil = nil)
- #rules : Array(Rule)
- #scopes : Array(Scope)
- #seed : UInt64
- #seed=(new_seed : UInt64)
- #seek(offset : Int) : Nil
- #template : String | Nil
- #template=(template : String | Nil)
-
#transform(input : Buffer | Bytes | String) : Buffer
Core transform method: transforms an input buffer and returns mutated buffer
- #uniqueness_filter : Evolution::UniquenessFilter | Nil
- #uniqueness_filter=(uniqueness_filter : Evolution::UniquenessFilter | Nil)
Constructor Detail
Class Method Detail
Auto-detects format/protocol of the given buffer
Instance Method Detail
Fuzzes a declarative binary frame, automatically recomputing lengths and checksums
Generates a string using a defined generative grammar
Extracts diagnostic tokens from error messages into active dictionary
Report feedback to evolutionary optimizer with optional feature & coverage hash telemetry
Core transform method: transforms an input buffer and returns mutated buffer