Method: Rex::Proto::Rmi::Model::Element.decode

Defined in:
lib/rex/proto/rmi/model/element.rb

.decode(io) ⇒ Rex::Proto::Rmi::Model::Element

Creates a Rex::Proto::Rmi::Model::Element with data from the IO.

Parameters:

  • io (IO)

    the IO to read data from

Returns:



28
29
30
31
32
33
# File 'lib/rex/proto/rmi/model/element.rb', line 28

def self.decode(io)
  elem = self.new
  elem.decode(io)

  elem
end