class Rex::Proto::Rmi::Model::UniqueIdentifier

This class provides a representation of UniqueIdentifier as used in RMI calls

Attributes

count[RW]

@!attribute count

@return [Fixnum] Identifies different instance of the same object generated from the same VM
  at the same time
number[RW]

@!attribute number

@return [Fixnum] Identifies the VM where an object is generated
time[RW]

@!attribute time

@return [Fixnum] Time where the object was generated

Private Instance Methods

decode_count(io) click to toggle source

Reads the count from the IO

@param io [IO] the IO to read from @return [Fixnum]

# File lib/rex/proto/rmi/model/unique_identifier.rb, line 46
def decode_count(io)
  count = read_short(io)

  count
end
decode_number(io) click to toggle source

Reads the number from the IO

@param io [IO] the IO to read from @return [Fixnum]

# File lib/rex/proto/rmi/model/unique_identifier.rb, line 26
def decode_number(io)
  number = read_int(io)

  number
end
decode_time(io) click to toggle source

Reads the time from the IO

@param io [IO] the IO to read from @return [Fixnum]

# File lib/rex/proto/rmi/model/unique_identifier.rb, line 36
def decode_time(io)
  time = read_long(io)

  time
end
encode_count() click to toggle source

Encodes the count field

@return [String]

# File lib/rex/proto/rmi/model/unique_identifier.rb, line 69
def encode_count
  [count].pack('s>')
end
encode_number() click to toggle source

Encodes the number field

@return [String]

# File lib/rex/proto/rmi/model/unique_identifier.rb, line 55
def encode_number
  [number].pack('l>')
end
encode_time() click to toggle source

Encodes the time field

@return [String]

# File lib/rex/proto/rmi/model/unique_identifier.rb, line 62
def encode_time
  [time].pack('q>')
end