src/ruby/lib/fstlib/easyip.rb
# Returns the correct payload depending on send_type and it will always be a Array
# EasyIP::Operand::STRING will be give you an array of strings
# Every one else will return a array of unsigned 16-bit values.
Returns the correct payload depending on send_type and it will always be a Array
EasyIP::Operand::STRING will be give you an array of strings
Every one else will return a array of unsigned 16-bit values.
Returns the correct payload depending on send_type and it will always be a Array EasyIP :: Operand :: STRING will be give you an array of strings Every one else will return a array of unsigned 16 - bit values .
def payload
      if self.send_type == EasyIP::Operand::STRING
        self.data.unpack("Z*")
      else
        values = self.data.unpack("v" * self.send_size)
      end
    end
def payload if self . send_type == EasyIP :: Operand :: STRING self . data . unpack ( "Z*" ) else values = self . data . unpack ( "v" * self . send_size ) end end
Returns the correct payload depending on send_type and it will always be a Array
EasyIP::Operand::STRING will be give you an array of strings
Every one else will return a array of unsigned 16-bit values.
Returns the correct payload depending on send_type and it will always be a Array EasyIP :: Operand :: STRING will be give you an array of strings Every one else will return a array of unsigned 16 - bit values .