class Rex::Poly::Machine::SymbolicPermutation

A symbolic permutation to mark locations like the begining and end of a group of blocks. Used to calculate usefull offsets.

Public Class Methods

new( name, machine, initial_offset=0 ) click to toggle source
Calls superclass method Rex::Poly::Machine::Permutation::new
# File lib/rex/poly/machine/machine.rb, line 183
def initialize( name, machine, initial_offset=0 )
  super( name, '', machine, '' )
  # fudge the initial symbolic offset with a default (it gets patched correctly later),
  # helps with the end symbolic block to not be 0 (as its a forward reference it really
  # slows things down if we leave it 0)
  @offset = initial_offset
  # A symbolic block is allways active!
  @active = true
end

Public Instance Methods

active=( value ) click to toggle source

We block all attempts to set the active state of this permutation so as it is always true. This lets us always address the offset.

# File lib/rex/poly/machine/machine.rb, line 197
def active=( value )
end