Class: Nl::Linux::Tc::Structs::TcHtbGlob
- Inherits:
-
Struct
- Object
- Struct
- Nl::Linux::Tc::Structs::TcHtbGlob
- Defined in:
- nl-linux/generated/nl/linux/tc.rb,
nl-linux/generated/nl/linux/tc.rb
Instance Attribute Summary collapse
-
#debug ⇒ Integer
Debug flags.
-
#defcls ⇒ Integer
Default class number.
-
#direct_pkts ⇒ Integer
Count of non shaped packets.
-
#rate2quantum ⇒ Integer
bps->quantum divisor.
- #version ⇒ Integer
Class Method Summary collapse
-
.decode(decoder) ⇒ self
Decodes the struct.
Instance Method Summary collapse
-
#encode(encoder) ⇒ void
Encodes the struct.
Instance Attribute Details
#debug ⇒ Integer
Debug flags
320 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 320 MEMBERS = Ractor.make_shareable({version: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), rate2quantum: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), defcls: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), debug: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), direct_pkts: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
#defcls ⇒ Integer
Default class number
320 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 320 MEMBERS = Ractor.make_shareable({version: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), rate2quantum: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), defcls: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), debug: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), direct_pkts: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
#direct_pkts ⇒ Integer
Count of non shaped packets
320 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 320 MEMBERS = Ractor.make_shareable({version: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), rate2quantum: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), defcls: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), debug: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), direct_pkts: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
#rate2quantum ⇒ Integer
bps->quantum divisor
320 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 320 MEMBERS = Ractor.make_shareable({version: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), rate2quantum: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), defcls: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), debug: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), direct_pkts: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
#version ⇒ Integer
320 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 320 MEMBERS = Ractor.make_shareable({version: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), rate2quantum: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), defcls: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), debug: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), direct_pkts: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
Class Method Details
.decode(decoder) ⇒ self
Decodes the struct.
326 327 328 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 326 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.
334 335 336 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 334 def encode(encoder) MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) } end |