Class: FFI::Clang::Types::Array
- Defined in:
- lib/ffi/clang/types/array.rb
Overview
Represents an array type. This includes constant arrays, incomplete arrays, variable arrays, and dependent-sized arrays.
Instance Attribute Summary
Attributes inherited from Type
Instance Method Summary collapse
-
#element_type ⇒ Object
Get the element type of this array.
-
#size ⇒ Object
Get the size of this array.
Methods inherited from Type
#==, #alignof, #canonical, #const_qualified?, create, #declaration, #initialize, #kind, #kind_spelling, #non_reference_type, #pod?, #ref_qualifier, #restrict_qualified?, #sizeof, #spelling, #to_s, #volatile_qualified?
Constructor Details
This class inherits a constructor from FFI::Clang::Types::Type
Instance Method Details
#element_type ⇒ Object
Get the element type of this array.
17 18 19 |
# File 'lib/ffi/clang/types/array.rb', line 17 def element_type Type.create Lib.get_array_element_type(@type), @translation_unit end |
#size ⇒ Object
Get the size of this array.
23 24 25 |
# File 'lib/ffi/clang/types/array.rb', line 23 def size Lib.get_array_size(@type) end |