class Array
Represents an array type. This includes constant arrays, incomplete arrays, variable arrays, and dependent-sized arrays.
Definitions
def element_type
Get the element type of this array.
Signature
-
returns
Type The type of elements in this array.
Implementation
def element_type
Type.create Lib.get_array_element_type(@type), @translation_unit
end
def size
Get the size of this array.
Signature
-
returns
Integer The number of elements in the array, or -1 if the size is not available.
Implementation
def size
Lib.get_array_size(@type)
end