Class: Nl::Linux::Tc::Structs::TcPeditSel

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)


2436
2437
2438
# File 'nl-linux/generated/nl/linux/tc.rb', line 2436

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

#bindcnt ⇒ Integer

Returns:

  • (Integer)


2436
2437
2438
# File 'nl-linux/generated/nl/linux/tc.rb', line 2436

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

#capab ⇒ Integer

Returns:

  • (Integer)


2436
2437
2438
# File 'nl-linux/generated/nl/linux/tc.rb', line 2436

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

#flags ⇒ Integer

Returns:

  • (Integer)


2436
2437
2438
# File 'nl-linux/generated/nl/linux/tc.rb', line 2436

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

#index ⇒ Integer

Returns:

  • (Integer)


2436
2437
2438
# File 'nl-linux/generated/nl/linux/tc.rb', line 2436

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

#keys ⇒ Structs::TcPeditKey

Returns:



2436
2437
2438
# File 'nl-linux/generated/nl/linux/tc.rb', line 2436

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

#nkeys ⇒ Integer

Returns:

  • (Integer)


2436
2437
2438
# File 'nl-linux/generated/nl/linux/tc.rb', line 2436

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

#refcnt ⇒ Integer

Returns:

  • (Integer)


2436
2437
2438
# File 'nl-linux/generated/nl/linux/tc.rb', line 2436

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)


2436
2437
2438
# File 'nl-linux/generated/nl/linux/tc.rb', line 2436

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:



2444
2445
2446
# File 'nl-linux/generated/nl/linux/tc.rb', line 2444

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