Class: Nl::Linux::OvsFlow::Structs::OvsActionHash
- Inherits:
-
Struct
- Object
- Struct
- Nl::Linux::OvsFlow::Structs::OvsActionHash
- Defined in:
- nl-linux/generated/nl/linux/ovs_flow.rb,
nl-linux/generated/nl/linux/ovs_flow.rb
Instance Attribute Summary collapse
-
#hash_alg ⇒ Integer
Algorithm used to compute hash prior to recirculation.
-
#hash_basis ⇒ Integer
Basis used for computing hash.
Class Method Summary collapse
-
.decode(decoder) ⇒ self
Decodes the struct.
Instance Method Summary collapse
-
#encode(encoder) ⇒ void
Encodes the struct.
Instance Attribute Details
#hash_alg ⇒ Integer
Algorithm used to compute hash prior to recirculation.
553 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 553 MEMBERS = Ractor.make_shareable({hash_alg: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), hash_basis: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
#hash_basis ⇒ Integer
Basis used for computing hash.
553 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 553 MEMBERS = Ractor.make_shareable({hash_alg: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), hash_basis: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
Class Method Details
.decode(decoder) ⇒ self
Decodes the struct.
559 560 561 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 559 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.
567 568 569 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 567 def encode(encoder) MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) } end |