Class: Nl::Linux::Tc::Structs::GnetEstimator
- Inherits:
-
Struct
- Object
- Struct
- Nl::Linux::Tc::Structs::GnetEstimator
- Defined in:
- nl-linux/generated/nl/linux/tc.rb,
nl-linux/generated/nl/linux/tc.rb
Instance Attribute Summary collapse
-
#ewma_log ⇒ Integer
The log() of measurement window weight.
-
#interval ⇒ Integer
Sampling period.
Class Method Summary collapse
-
.decode(decoder) ⇒ self
Decodes the struct.
Instance Method Summary collapse
-
#encode(encoder) ⇒ void
Encodes the struct.
Instance Attribute Details
#ewma_log ⇒ Integer
The log() of measurement window weight
1269 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1269 MEMBERS = Ractor.make_shareable({interval: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S8, check: nil), ewma_log: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil)}) |
Class Method Details
.decode(decoder) ⇒ self
Decodes the struct.
1275 1276 1277 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1275 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.
1283 1284 1285 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1283 def encode(encoder) MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) } end |