class Crowbar::FrameField

Overview

Field definition within a binary protocol Frame

Defined in:

crowbar/dsl/frame_builder.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String | Symbol, kind : Symbol = :raw, size : Int32 | Nil = nil, default : Bytes | String | Int | Nil = nil, relates_to : String | Symbol | Nil = nil, covers : Array(String | Symbol) | Nil = nil, mutable : Bool = true, mutators : Array(Symbol) = [] of Symbol) #

Instance Method Detail

def covers : Array(String) | Nil #

def covers=(covers : Array(String) | Nil) #

def default_data : Bytes #

def default_data=(default_data : Bytes) #

def kind : Symbol #

def kind=(kind : Symbol) #

def mutable : Bool #

def mutable=(mutable : Bool) #

def mutators : Array(Symbol) #

def mutators=(mutators : Array(Symbol)) #

def name : String #

def name=(name : String) #

def relates_to : String | Nil #

def relates_to=(relates_to : String | Nil) #

def size : Int32 | Nil #

def size=(size : Int32 | Nil) #