Class: Nl::Linux::OvsDatapath::Structs::OvsDpStats

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#n_flows ⇒ Integer

Returns:

  • (Integer)


85
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 85

MEMBERS = Ractor.make_shareable({n_hit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), n_missed: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), n_lost: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), n_flows: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)})

#n_hit ⇒ Integer

Returns:

  • (Integer)


85
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 85

MEMBERS = Ractor.make_shareable({n_hit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), n_missed: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), n_lost: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), n_flows: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)})

#n_lost ⇒ Integer

Returns:

  • (Integer)


85
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 85

MEMBERS = Ractor.make_shareable({n_hit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), n_missed: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), n_lost: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), n_flows: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)})

#n_missed ⇒ Integer

Returns:

  • (Integer)


85
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 85

MEMBERS = Ractor.make_shareable({n_hit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), n_missed: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), n_lost: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), n_flows: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)})

Class Method Details

.decode(decoder) ⇒ self

Decodes the struct.

Parameters:

Returns:

  • (self)


91
92
93
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 91

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:



99
100
101
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 99

def encode(encoder)
  MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) }
end