Class: Nl::Linux::Tc::Structs::TcGactP
- Inherits:
-
Struct
- Object
- Struct
- Nl::Linux::Tc::Structs::TcGactP
- Defined in:
- nl-linux/generated/nl/linux/tc.rb,
nl-linux/generated/nl/linux/tc.rb
Instance Attribute Summary collapse
Class Method Summary collapse
-
.decode(decoder) ⇒ self
Decodes the struct.
Instance Method Summary collapse
-
#encode(encoder) ⇒ void
Encodes the struct.
Instance Attribute Details
#paction ⇒ Integer
2215 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 2215 MEMBERS = Ractor.make_shareable({ptype: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U16, check: nil), pval: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U16, check: nil), paction: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)}) |
#ptype ⇒ Integer
2215 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 2215 MEMBERS = Ractor.make_shareable({ptype: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U16, check: nil), pval: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U16, check: nil), paction: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)}) |
#pval ⇒ Integer
2215 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 2215 MEMBERS = Ractor.make_shareable({ptype: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U16, check: nil), pval: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U16, check: nil), paction: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)}) |
Class Method Details
.decode(decoder) ⇒ self
Decodes the struct.
2221 2222 2223 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 2221 def self.decode(decoder) self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) }) end |
Instance Method Details
#encode(encoder) ⇒ void
This method returns an undefined value.
Encodes the struct.
2229 2230 2231 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 2229 def encode(encoder) MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) } end |