Class: Nl::Linux::Tc::Structs::TcGactP

Inherits:
Struct
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/tc.rb,
nl-linux/generated/nl/linux/tc.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#paction ⇒ Integer

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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.

Parameters:

Returns:

  • (self)


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.

Parameters:



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