Class: RbBCC::Pointer

Inherits:
Object
  • Object
show all
Defined in:
lib/rbbcc/pointer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pointerObject (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

#valueObject



11
12
13
# File 'lib/rbbcc/pointer.rb', line 11

def value

end