com.kenai.jffi
Class Array

java.lang.Object
  extended by com.kenai.jffi.Type
      extended by com.kenai.jffi.Aggregate
          extended by com.kenai.jffi.Array

public final class Array
extends Aggregate

Describes the layout of a C array


Field Summary
 
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.
 
Method Summary
 Type getElementType()
          Returns the type of elements in the array
 int length()
          Returns the number of elements in the array
 
Methods inherited from class com.kenai.jffi.Aggregate
alignment, dispose, finalize, size, type
 
Methods inherited from class com.kenai.jffi.Type
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Array

public Array(Type elementType,
             int length)
Creates a new C array layout description.

Parameters:
fields - The fields contained in the struct.
Method Detail

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