Class: Nl::Linux::Tc::Structs::TcNetemRate
- Inherits:
-
Struct
- Object
- Struct
- Nl::Linux::Tc::Structs::TcNetemRate
- Defined in:
- nl-linux/generated/nl/linux/tc.rb,
nl-linux/generated/nl/linux/tc.rb
Instance Attribute Summary collapse
Class Method Summary collapse
-
.decode(decoder) ⇒ self
Decodes the struct.
Instance Method Summary collapse
-
#encode(encoder) ⇒ void
Encodes the struct.
Instance Attribute Details
#cell_overhead ⇒ Integer
770 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 770 MEMBERS = Ractor.make_shareable({rate: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), packet_overhead: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), cell_size: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), cell_overhead: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)}) |
#cell_size ⇒ Integer
770 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 770 MEMBERS = Ractor.make_shareable({rate: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), packet_overhead: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), cell_size: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), cell_overhead: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)}) |
#packet_overhead ⇒ Integer
770 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 770 MEMBERS = Ractor.make_shareable({rate: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), packet_overhead: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), cell_size: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), cell_overhead: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)}) |
#rate ⇒ Integer
770 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 770 MEMBERS = Ractor.make_shareable({rate: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), packet_overhead: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), cell_size: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), cell_overhead: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil)}) |
Class Method Details
.decode(decoder) ⇒ self
Decodes the struct.
776 777 778 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 776 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.
784 785 786 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 784 def encode(encoder) MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) } end |