Class: FFI::UDis86::OperandPointer

Inherits:
Struct
  • Object
show all
Defined in:
lib/ffi/udis86/operand_pointer.rb

Instance Method Summary collapse

Instance Method Details

#offsetInteger Also known as: off

Returns the offset within the segment of the pointer.

Returns:

  • (Integer)

    The offset within the segment.



28
29
30
# File 'lib/ffi/udis86/operand_pointer.rb', line 28

def offset
  self[:offset]
end

#segmentInteger Also known as: seg

Returns the pointer segment.

Returns:

  • (Integer)

    The pointer segment.



16
17
18
# File 'lib/ffi/udis86/operand_pointer.rb', line 16

def segment
  self[:segment]
end