class
Crowbar::FrameDefinition
- Crowbar::FrameDefinition
- Reference
- Object
Overview
Declarative protocol frame definition orchestrating fields, auto-lengths, and checksums
Defined in:
crowbar/dsl/frame_builder.crConstructors
Instance Method Summary
- #add_field(field : FrameField)
-
#assemble(field_data : Hash(String, Bytes)) : Buffer
Assembles a buffer from field byte slices, automatically updating lengths and checksums
-
#build_baseline : Buffer
Builds a default baseline packet for this frame
- #field_by_name(name : String) : FrameField | Nil
- #fields : Array(FrameField)
-
#mutate(context : Context, pool : MutatorPool) : Buffer
Mutates the frame: mutates mutable fields, then re-synchronizes lengths and checksums
- #name : String
Constructor Detail
Instance Method Detail
Assembles a buffer from field byte slices, automatically updating lengths and checksums
Mutates the frame: mutates mutable fields, then re-synchronizes lengths and checksums