Class: Nl::Linux::Tc::Structs::TcTbfQopt
- Inherits:
-
Struct
- Object
- Struct
- Nl::Linux::Tc::Structs::TcTbfQopt
- Defined in:
- nl-linux/generated/nl/linux/tc.rb,
nl-linux/generated/nl/linux/tc.rb
Instance Attribute Summary collapse
- #buffer ⇒ Integer
- #limit ⇒ Integer
- #mtu ⇒ Integer
- #peakrate ⇒ Structs::TcRatespec
- #rate ⇒ Structs::TcRatespec
Class Method Summary collapse
-
.decode(decoder) ⇒ self
Decodes the struct.
Instance Method Summary collapse
-
#encode(encoder) ⇒ void
Encodes the struct.
Instance Attribute Details
#buffer ⇒ Integer
1199 1200 1201 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1199 def self.decode(decoder) self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) }) end |
#limit ⇒ Integer
1199 1200 1201 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1199 def self.decode(decoder) self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) }) end |
#mtu ⇒ Integer
1199 1200 1201 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1199 def self.decode(decoder) self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) }) end |
#peakrate ⇒ Structs::TcRatespec
1199 1200 1201 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1199 def self.decode(decoder) self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) }) end |
#rate ⇒ Structs::TcRatespec
1199 1200 1201 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1199 def self.decode(decoder) self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) }) end |
Class Method Details
.decode(decoder) ⇒ self
Decodes the struct.
1199 1200 1201 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1199 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.
1207 1208 1209 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1207 def encode(encoder) MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) } end |