struct

Filament::Dissect::DissectResult

Inherits Struct < Value < Object

Dissection outcome for a single protocol layer within a packet

Constructors

new(protocol : Protocol, payload_offset : UInt32, payload_length : UInt32, fields : Hash(String, FieldValue) = Hash(String, FieldValue).new, next_protocol : Protocol | Nil = nil, errors : Array(String) = [] of String)
Source

Instance methods

[](key : String) : FieldValue

Convenience field lookup

Source
[]?(key : String) : FieldValue | Nil
Source
bool?(key : String) : Bool | Nil
Source
bytes?(key : String) : Bytes | Nil
Source
errors
Source
fields
Source
next_protocol
Source
payload_length
Source
payload_offset
Source
protocol
Source
string?(key : String) : String | Nil
Source
uint16?(key : String) : UInt16 | Nil
Source
uint32?(key : String) : UInt32 | Nil
Source
valid?
Source