|
Servertec Jenie 1.0.1 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectstec.jenie.NativeObject
stec.jenie.NativeArray
public abstract class NativeArray
Base class that all native arrays must extend.
| Constructor Summary | |
|---|---|
NativeArray(int[] dimensions,
int element_size)
Constructs a new native array with the specified dimensions and element size. |
|
NativeArray(NativeArray native_array)
Constructs a new native array using dimensions and element size of the specified native array. |
|
NativeArray(Pointer pointer,
int[] dimensions,
int element_size)
Constructs a new native array using the specified pointer, dimensions and element size. |
|
NativeArray(Pointer pointer,
NativeArray native_array)
Constructs a new native array using the specified pointer and dimensions and element size from the specified native array. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Returns whether this native array equals the specified native array. |
int[] |
getDimensions()
Returns the dimensions of this native array. |
int |
getElementSize()
Returns the element size of this native array. |
int |
getOffset(int index)
Returns the byte offset into the native array of the specified index. |
int |
getOffset(int[] indexes)
Returns the byte offset into the native array of the specified indexes. |
int |
getOffset(int row,
int column)
Returns the byte offset into the native array of the specified row and column. |
int |
getOffset(int row_index,
int column_index,
int value_index)
Returns the byte offset into the native array of the specified row and column. |
static int[] |
i2a(int value)
Returns a one dimension integer array containing the specified value as its only element. |
static int[] |
i2a(int value1,
int value2)
Returns a two dimensions integer array containing the specified values as its element values. |
static int[] |
i2a(int value1,
int value2,
int value3)
Returns a three dimensions integer array containing the specified values as its element values. |
| Methods inherited from class stec.jenie.NativeObject |
|---|
clone, getAlignment, getNativeAddress, getNativeBuffer, getNativeBufferHandle, hashCode, setNativeBuffer, setNativeBuffer, setNativeBuffer, size |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NativeArray(int[] dimensions,
int element_size)
throws java.lang.OutOfMemoryError,
java.lang.IllegalArgumentException
dimensions - an integer array of one or more dimensions.element_size - the size in bytes of an element in the array.
java.lang.OutOfMemoryError - if there is not enough free memory.
java.lang.IllegalArgumentException - if any of the specified parameters are invalid.
public NativeArray(NativeArray native_array)
throws java.lang.OutOfMemoryError,
java.lang.IllegalArgumentException
native_array - the native array to use.
java.lang.OutOfMemoryError - if there is not enough free memory.
java.lang.IllegalArgumentException - if any of the specified parameters are invalid.
public NativeArray(Pointer pointer,
int[] dimensions,
int element_size)
throws java.lang.IllegalArgumentException
pointer - the pointer to the native array.dimensions - an integer array of one or more dimensions.element_size - the size in bytes of an element in the array.
java.lang.IllegalArgumentException - if any of the specified parameters are invalid.
public NativeArray(Pointer pointer,
NativeArray native_array)
throws java.lang.IllegalArgumentException
pointer - the pointer to the native array.dimensions - an integer array of one or more dimensions.element_size - the size in bytes of an element in the array.
java.lang.IllegalArgumentException - if any of the specified parameters are invalid.| Method Detail |
|---|
public static final int[] i2a(int value)
value - the value to use.
public static final int[] i2a(int value1,
int value2)
value1 - the first value.value2 - the second value.
public static final int[] i2a(int value1,
int value2,
int value3)
value1 - the first value.value2 - the second value.value3 - the third value.
public int[] getDimensions()
public int getElementSize()
public int getOffset(int[] indexes)
throws java.lang.IllegalArgumentException
indexes - the indexes.
java.lang.IllegalArgumentException - if the specified parameter is not valid.
public int getOffset(int row,
int column)
throws java.lang.IllegalArgumentException
row - the row.column - the column.
java.lang.IllegalArgumentException - if any of the specified parameters is not valid.
public int getOffset(int row_index,
int column_index,
int value_index)
throws java.lang.IllegalArgumentException
row_index - the row.column_index - the column.value_index - the value.
java.lang.IllegalArgumentException - if any of thespecified parameters is not valid.
public int getOffset(int index)
throws java.lang.IllegalArgumentException
index - the index.
java.lang.IllegalArgumentException - if the specified parameter is not valid.public boolean equals(java.lang.Object object)
equals in class NativeObjectobject - the native array to compare against.
|
Servertec Jenie 1.0.1 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2004-2005 Servertec. All rights reserved.