Class: Nl::Linux::Tc::Structs::TcCbsQopt
- Inherits:
-
Struct
- Object
- Struct
- Nl::Linux::Tc::Structs::TcCbsQopt
- Defined in:
- nl-linux/generated/nl/linux/tc.rb,
nl-linux/generated/nl/linux/tc.rb
Instance Attribute Summary collapse
- #hicredit ⇒ Integer
- #idleslope ⇒ Integer
- #locredit ⇒ Integer
- #offload ⇒ Integer
- #pad ⇒ nil
- #sendslope ⇒ Integer
Class Method Summary collapse
-
.decode(decoder) ⇒ self
Decodes the struct.
Instance Method Summary collapse
-
#encode(encoder) ⇒ void
Encodes the struct.
Instance Attribute Details
#hicredit ⇒ Integer
181 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 181 MEMBERS = Ractor.make_shareable({offload: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), pad: ::Nl::DataTypes::Pad.new(3), hicredit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), locredit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), idleslope: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), sendslope: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)}) |
#idleslope ⇒ Integer
181 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 181 MEMBERS = Ractor.make_shareable({offload: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), pad: ::Nl::DataTypes::Pad.new(3), hicredit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), locredit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), idleslope: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), sendslope: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)}) |
#locredit ⇒ Integer
181 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 181 MEMBERS = Ractor.make_shareable({offload: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), pad: ::Nl::DataTypes::Pad.new(3), hicredit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), locredit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), idleslope: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), sendslope: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)}) |
#offload ⇒ Integer
181 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 181 MEMBERS = Ractor.make_shareable({offload: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), pad: ::Nl::DataTypes::Pad.new(3), hicredit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), locredit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), idleslope: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), sendslope: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)}) |
#pad ⇒ nil
181 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 181 MEMBERS = Ractor.make_shareable({offload: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), pad: ::Nl::DataTypes::Pad.new(3), hicredit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), locredit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), idleslope: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), sendslope: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)}) |
#sendslope ⇒ Integer
181 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 181 MEMBERS = Ractor.make_shareable({offload: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U8, check: nil), pad: ::Nl::DataTypes::Pad.new(3), hicredit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), locredit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), idleslope: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), sendslope: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)}) |
Class Method Details
.decode(decoder) ⇒ self
Decodes the struct.
187 188 189 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 187 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.
195 196 197 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 195 def encode(encoder) MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) } end |