Class: Nl::Core::NlAttr
- Inherits:
-
Struct
- Object
- Struct
- Nl::Core::NlAttr
- Defined in:
- lib/nl/core.rb,
lib/nl/core.rb
Overview
Attribute header
Instance Attribute Summary collapse
-
#len ⇒ Object
Returns the value of attribute len.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#len ⇒ Object
Returns the value of attribute len
72 73 74 |
# File 'lib/nl/core.rb', line 72 def len @len end |
#type ⇒ Object
Returns the value of attribute type
72 73 74 |
# File 'lib/nl/core.rb', line 72 def type @type end |
Class Method Details
.decode(decoder) ⇒ Object
81 82 83 84 85 |
# File 'lib/nl/core.rb', line 81 def self.decode(decoder) obj = new(*decoder.get_values(FORMAT)) decoder.align_to(Constants::NLA_ALIGNTO) obj end |
Instance Method Details
#encode(encoder) ⇒ Object
87 88 89 90 91 |
# File 'lib/nl/core.rb', line 87 def encode(encoder) encoder.reserve(Constants::NLA_HDRLEN) encoder.put_values(FORMAT, to_a) encoder.align_to(Constants::NLA_ALIGNTO) end |