class

Crowbar::FrameDefinition

Inherits Reference < Object

Declarative protocol frame definition orchestrating fields, auto-lengths, and checksums

Constructors

new(name : String)
Source

Instance methods

add_field(field : FrameField)
Source
assemble(field_data : Hash(String, Bytes)) : Buffer

Assembles a buffer from field byte slices, automatically updating lengths and checksums

Source
build_baseline

Builds a default baseline packet for this frame

Source
field_by_name(name : String) : FrameField | Nil
Source
fields
Source
mutate(context : Context, pool : MutatorPool) : Buffer

Mutates the frame: mutates mutable fields, then re-synchronizes lengths and checksums

Source
name
Source