Class: Nl::Linux::Tc::Structs::TcCbsQopt

Inherits:
Struct
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/tc.rb,
nl-linux/generated/nl/linux/tc.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hicredit ⇒ Integer

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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.

Parameters:

Returns:

  • (self)


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.

Parameters:



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