class RCGTK::TargetData
This class represents data about a specific architecture. Currently it is for internal use only and should not be instantiated by users.
Public Class Methods
new(ptr)
click to toggle source
@param [FFI::Pointer] ptr
# File lib/rcgtk/target.rb, line 113 def initialize(ptr) @ptr = ptr end
Public Instance Methods
pointer_size(as)
click to toggle source
Gets the pointer size for this target machine and address space combination.
@param [Integer] as Address space
@return [Integer] Size of pointer
# File lib/rcgtk/target.rb, line 123 def pointer_size(as) Bindings.pointer_size_for_as(@ptr, as) end