class RLTK::CG::IntPtr
Integer the same size as a native pointer.
Public Class Methods
new(target_data, addr_space = nil, context = nil)
click to toggle source
Create an integer that is the same size as a pointer on the target machine. Additionally, an address space and a context may be provided.
@param [TargetData] target_data Data on compilation target @param [Integer] addr_space Target
address space @param [Context] context Context
in which to get the type
# File lib/rltk/cg/type.rb, line 223 def initialize(target_data, addr_space = nil, context = nil) call = 'int_type' args = [target_data] if addr_space call += '_for_as' args << addr_space end if context call += '_in_context' args << context end Bindings.send(call.to_s, *args) end