Method: Codec::BaseComposed#build_field
- Defined in:
- lib/codec/composed.rb
#build_field(buf, length) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/codec/composed.rb', line 44 def build_field(buf,length) msg,working_buf = build_each_field(buf,length) if working_buf.length > 0 if @length_unknown @remain = working_buf else f = Field.new("PADDING") f.set_value(working_buf.unpack("H*").first) msg.add_sub_field(f) end end return msg end |