Class: YTLJit::AsmType::Pointer

Inherits:
TypeCommon show all
Defined in:
lib/ytljit/type.rb

Instance Attribute Summary

Attributes inherited from TypeCommon

#type

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ Pointer

Returns a new instance of Pointer.



50
51
52
# File 'lib/ytljit/type.rb', line 50

def initialize(type)
  @type = type
end

Instance Method Details

#[](n = 0, offset = 0) ⇒ Object



62
63
64
# File 'lib/ytljit/type.rb', line 62

def [](n = 0, offset = 0)
  PointedData.new(@type, n, offset)
end

#alignmentObject



58
59
60
# File 'lib/ytljit/type.rb', line 58

def alignment
  MACHINE_WORD.alignment
end

#sizeObject



54
55
56
# File 'lib/ytljit/type.rb', line 54

def size
  MACHINE_WORD.size
end