Class: RLTK::CG::PointerType

Inherits:
SimpleAggregateType show all
Defined in:
lib/rltk/cg/type.rb

Overview

A Type describing a pointer to another type.

Instance Attribute Summary

Attributes included from BindingClass

#ptr

Instance Method Summary collapse

Methods inherited from SimpleAggregateType

#element_type, #initialize

Methods inherited from Type

#allignment, #context, #dump, from_ptr, #hash, #initialize, #kind, #size, #to_s

Methods included from BindingClass

#==

Constructor Details

This class inherits a constructor from RLTK::CG::SimpleAggregateType

Instance Method Details

#address_spaceInteger

Returns Address space of this pointer.

Returns:

  • (Integer)

    Address space of this pointer.



314
315
316
# File 'lib/rltk/cg/type.rb', line 314

def address_space
	@address_space ||= Bindings.get_pointer_address_space(@ptr)
end