Class: Nl::Linux::Tc::Structs::TcPolice

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

#action ⇒ Integer

Returns:

  • (Integer)


2392
2393
2394
# File 'nl-linux/generated/nl/linux/tc.rb', line 2392

def self.decode(decoder)
  self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) })
end

#bindcnt ⇒ Integer

Returns:

  • (Integer)


2392
2393
2394
# File 'nl-linux/generated/nl/linux/tc.rb', line 2392

def self.decode(decoder)
  self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) })
end

#burst ⇒ Integer

Returns:

  • (Integer)


2392
2393
2394
# File 'nl-linux/generated/nl/linux/tc.rb', line 2392

def self.decode(decoder)
  self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) })
end

#capab ⇒ Integer

Returns:

  • (Integer)


2392
2393
2394
# File 'nl-linux/generated/nl/linux/tc.rb', line 2392

def self.decode(decoder)
  self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) })
end

#index ⇒ Integer

Returns:

  • (Integer)


2392
2393
2394
# File 'nl-linux/generated/nl/linux/tc.rb', line 2392

def self.decode(decoder)
  self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) })
end

#limit ⇒ Integer

Returns:

  • (Integer)


2392
2393
2394
# File 'nl-linux/generated/nl/linux/tc.rb', line 2392

def self.decode(decoder)
  self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) })
end

#mtu ⇒ Integer

Returns:

  • (Integer)


2392
2393
2394
# File 'nl-linux/generated/nl/linux/tc.rb', line 2392

def self.decode(decoder)
  self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) })
end

#peakrate ⇒ Structs::TcRatespec

Returns:



2392
2393
2394
# File 'nl-linux/generated/nl/linux/tc.rb', line 2392

def self.decode(decoder)
  self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) })
end

#rate ⇒ Structs::TcRatespec

Returns:



2392
2393
2394
# File 'nl-linux/generated/nl/linux/tc.rb', line 2392

def self.decode(decoder)
  self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) })
end

#refcnt ⇒ Integer

Returns:

  • (Integer)


2392
2393
2394
# File 'nl-linux/generated/nl/linux/tc.rb', line 2392

def self.decode(decoder)
  self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) })
end

Class Method Details

.decode(decoder) ⇒ self

Decodes the struct.

Parameters:

Returns:

  • (self)


2392
2393
2394
# File 'nl-linux/generated/nl/linux/tc.rb', line 2392

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:



2400
2401
2402
# File 'nl-linux/generated/nl/linux/tc.rb', line 2400

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