com.kenai.jffi
Class Array
java.lang.Object
com.kenai.jffi.Type
com.kenai.jffi.Aggregate
com.kenai.jffi.Array
public final class Array
- extends Aggregate
Describes the layout of a C array
| Fields inherited from class com.kenai.jffi.Type |
DOUBLE, FLOAT, LONGDOUBLE, POINTER, SCHAR, SINT, SINT16, SINT32, SINT64, SINT8, SLONG, SLONG_LONG, SSHORT, UCHAR, UINT, UINT16, UINT32, UINT64, UINT8, ULONG, ULONG_LONG, USHORT, VOID |
|
Constructor Summary |
Array(Type elementType,
int length)
Creates a new C array layout description. |
Array
public Array(Type elementType,
int length)
- Creates a new C array layout description.
- Parameters:
fields - The fields contained in the struct.
newArray
public static Array newArray(Type elementType,
int length)
- Creates a new C array layout description.
- Parameters:
elementType - The type of each element of the arraylength - The length of the array.
getElementType
public final Type getElementType()
- Returns the type of elements in the array
- Returns:
- The Type of the elements in the array
length
public final int length()
- Returns the number of elements in the array
- Returns:
- The number of elements in the array
equals
public boolean equals(Object o)
- Overrides:
equals in class Type
hashCode
public int hashCode()
- Overrides:
hashCode in class Type
Copyright © 2013. All Rights Reserved.