Class: RLTK::CG::TargetData
- Inherits:
-
Object
- Object
- RLTK::CG::TargetData
- Includes:
- BindingClass
- Defined in:
- lib/rltk/cg/target.rb
Overview
This class represents data about a specific architecture. Currently it is for internal use only and should not be instantiated by users.
Instance Attribute Summary
Attributes included from BindingClass
Instance Method Summary collapse
-
#initialize(ptr) ⇒ TargetData
constructor
A new instance of TargetData.
-
#pointer_size(as) ⇒ Integer
Gets the pointer size for this target machine and address space combination.
Methods included from BindingClass
Constructor Details
#initialize(ptr) ⇒ TargetData
Returns a new instance of TargetData.
113 114 115 |
# File 'lib/rltk/cg/target.rb', line 113 def initialize(ptr) @ptr = ptr end |
Instance Method Details
#pointer_size(as) ⇒ Integer
Gets the pointer size for this target machine and address space combination.
123 124 125 |
# File 'lib/rltk/cg/target.rb', line 123 def pointer_size(as) Bindings.pointer_size_for_as(@ptr, as) end |