Class: Nl::Linux::Tc::Structs::TcMultiqQopt
- Inherits:
-
Struct
- Object
- Struct
- Nl::Linux::Tc::Structs::TcMultiqQopt
- Defined in:
- nl-linux/generated/nl/linux/tc.rb,
nl-linux/generated/nl/linux/tc.rb
Instance Attribute Summary collapse
-
#bands ⇒ Integer
Number of bands.
-
#max_bands ⇒ Integer
Maximum number of queues.
Class Method Summary collapse
-
.decode(decoder) ⇒ self
Decodes the struct.
Instance Method Summary collapse
-
#encode(encoder) ⇒ void
Encodes the struct.
Instance Attribute Details
Class Method Details
.decode(decoder) ⇒ self
Decodes the struct.
533 534 535 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 533 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.
541 542 543 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 541 def encode(encoder) MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) } end |