public final class Array extends Aggregate
Constructor and Description |
---|
Array(Type elementType,
int length)
Creates a new C array layout description.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Type |
getElementType()
Returns the type of elements in the array
|
int |
hashCode() |
int |
length()
Returns the number of elements in the array
|
static Array |
newArray(Type elementType,
int length)
Creates a new C array layout description.
|
public Array(Type elementType, int length)
elementType
- The type of fields contained in the struct.length
- the number of elements.public static Array newArray(Type elementType, int length)
elementType
- The type of each element of the arraylength
- The length of the array.public final Type getElementType()
Type
of the elements in the arraypublic final int length()
Copyright © 2024. All rights reserved.