Class: RbBCC::Pointer
- Inherits:
-
Object
- Object
- RbBCC::Pointer
- Defined in:
- lib/rbbcc/pointer.rb
Instance Attribute Summary collapse
-
#raw_pointer ⇒ Object
readonly
Returns the value of attribute raw_pointer.
Instance Method Summary collapse
-
#initialize(p, value_type: nil, size: nil) ⇒ Pointer
constructor
A new instance of Pointer.
- #value ⇒ Object
Constructor Details
#initialize(p, value_type: nil, size: nil) ⇒ Pointer
Returns a new instance of Pointer.
3 4 5 6 7 |
# File 'lib/rbbcc/pointer.rb', line 3 def initialize(p, value_type: nil, size: nil) @raw_pointer = p @size = size || p.size @value_type = value_type end |
Instance Attribute Details
#raw_pointer ⇒ Object (readonly)
Returns the value of attribute raw_pointer.
9 10 11 |
# File 'lib/rbbcc/pointer.rb', line 9 def raw_pointer @raw_pointer end |
Instance Method Details
#value ⇒ Object
11 12 13 |
# File 'lib/rbbcc/pointer.rb', line 11 def value end |