module Crowbar::Detector

Overview

Automatic format and protocol detector inspecting magic bytes, framing signatures, and syntactical prefixes across media, network protocols, structured data, and code.

Defined in:

crowbar/rules/detector.cr

Class Method Summary

Class Method Detail

def self.detect(buffer : Buffer) : Symbol | Nil #

Inspects buffer contents and returns the best-matching format symbol, or nil if undetermined.