Class: Evoasm::Parameter

Inherits:
FFI::Pointer show all
Defined in:
lib/evoasm/parameter.rb

Overview

Base class for all parameters.

Direct Known Subclasses

X64::Instruction::Parameter

Instance Method Summary collapse

Methods inherited from FFI::Pointer

#to_ptr

Instance Method Details

#domainDomain

Returns the domain associated with this parameter

Returns:

  • (Domain)

    the domain associated with this parameter



13
14
15
16
17
18
# File 'lib/evoasm/parameter.rb', line 13

def domain
  domain = Domain.wrap Libevoasm.param_get_domain(self)
  domain.autorelease = false

  domain
end

#idInteger

Returns a numeric identifier for this parameter

Returns:

  • (Integer)

    a numeric identifier for this parameter



8
9
10
# File 'lib/evoasm/parameter.rb', line 8

def id
  Libevoasm.param_get_id self
end