public class Array1DUtil extends java.lang.Object
Constructor and Description |
---|
Array1DUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean[] |
allocIfNull(boolean[] out,
int len)
Allocate the specified array if it's defined to null with the specified len
|
static byte[] |
allocIfNull(byte[] out,
int len)
Allocate the specified array if it's defined to null with the specified len
|
static double[] |
allocIfNull(double[] out,
int len)
Allocate the specified array if it's defined to null with the specified lenght
|
static float[] |
allocIfNull(float[] out,
int len)
Allocate the specified array if it's defined to null with the specified len
|
static int[] |
allocIfNull(int[] out,
int len)
Allocate the specified array if it's defined to null with the specified len
|
static long[] |
allocIfNull(long[] out,
int len)
Allocate the specified array if it's defined to null with the specified len
|
static java.lang.Object |
allocIfNull(java.lang.Object out,
DataType dataType,
int len)
Allocate the specified 1D array if it's defined to null with the specified len
|
static short[] |
allocIfNull(short[] out,
int len)
Allocate the specified array if it's defined to null with the specified len
|
static boolean |
arrayByteCompare(byte[] array1,
byte[] array2)
Return true is the specified arrays are equals
|
static boolean |
arrayDoubleCompare(double[] array1,
double[] array2)
Return true is the specified arrays are equals
|
static boolean |
arrayFloatCompare(float[] array1,
float[] array2)
Return true is the specified arrays are equals
|
static boolean |
arrayIntCompare(int[] array1,
int[] array2)
Return true is the specified arrays are equals
|
static boolean |
arrayLongCompare(long[] array1,
long[] array2)
Return true is the specified arrays are equals
|
static boolean |
arrayShortCompare(short[] array1,
short[] array2)
Return true is the specified arrays are equals
|
static java.lang.Object |
arrayToArray(java.lang.Object in,
int inOffset,
java.lang.Object out,
int outOffset,
int length,
boolean signed)
Convert and return the 'in' 1D array in 'out' 1D array type.
|
static java.lang.Object |
arrayToArray(java.lang.Object in,
java.lang.Object out,
boolean signed)
Convert and return the 'in' 1D array in 'out' 1D array type.
|
static byte[] |
arrayToByteArray(java.lang.Object in)
Convert and return the 'in' array as a byte array.
|
static byte[] |
arrayToByteArray(java.lang.Object in,
byte[] out)
Convert and return the 'in' array in 'out' byte array.
|
static byte[] |
arrayToByteArray(java.lang.Object in,
int inOffset,
byte[] out,
int outOffset,
int length)
Convert and return the 'in' array in 'out' byte array.
|
static double[] |
arrayToDoubleArray(java.lang.Object in,
boolean signed)
Convert and return the 'in' array as a double array.
|
static double[] |
arrayToDoubleArray(java.lang.Object in,
double[] out,
boolean signed)
Convert and return the 'in' array in 'out' double array.
|
static double[] |
arrayToDoubleArray(java.lang.Object in,
int inOffset,
double[] out,
int outOffset,
int length,
boolean signed)
Convert and return the 'in' array in 'out' double array.
|
static float[] |
arrayToFloatArray(java.lang.Object in,
boolean signed)
Convert and return the 'in' array as a float array.
|
static float[] |
arrayToFloatArray(java.lang.Object in,
float[] out,
boolean signed)
Convert and return the 'in' array in 'out' float array.
|
static float[] |
arrayToFloatArray(java.lang.Object in,
int inOffset,
float[] out,
int outOffset,
int length,
boolean signed)
Convert and return the 'in' array in 'out' float array.
|
static int[] |
arrayToIntArray(java.lang.Object in,
boolean signed)
Convert and return the 'in' array as a int array.
|
static int[] |
arrayToIntArray(java.lang.Object in,
int[] out,
boolean signed)
Convert and return the 'in' array in 'out' int array.
|
static int[] |
arrayToIntArray(java.lang.Object in,
int inOffset,
int[] out,
int outOffset,
int length,
boolean signed)
Convert and return the 'in' array in 'out' int array.
|
static byte[] |
arrayToSafeByteArray(java.lang.Object in,
byte[] out,
boolean signed)
Deprecated.
|
static byte[] |
arrayToSafeByteArray(java.lang.Object in,
byte[] out,
boolean srcSigned,
boolean dstSigned) |
static byte[] |
arrayToSafeByteArray(java.lang.Object in,
int inOffset,
byte[] out,
int outOffset,
int length,
boolean signed)
Deprecated.
|
static byte[] |
arrayToSafeByteArray(java.lang.Object in,
int inOffset,
byte[] out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static int[] |
arrayToSafeIntArray(java.lang.Object in,
int[] out,
boolean signed)
Deprecated.
Use
arrayToSafeIntArray(Object, int[], boolean, boolean) instead. |
static int[] |
arrayToSafeIntArray(java.lang.Object in,
int[] out,
boolean srcSigned,
boolean dstSigned) |
static int[] |
arrayToSafeIntArray(java.lang.Object in,
int inOffset,
int[] out,
int outOffset,
int length,
boolean signed)
Deprecated.
|
static int[] |
arrayToSafeIntArray(java.lang.Object in,
int inOffset,
int[] out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static long[] |
arrayToSafeLongArray(java.lang.Object in,
int inOffset,
long[] out,
int outOffset,
int length,
boolean signed)
Deprecated.
|
static long[] |
arrayToSafeLongArray(java.lang.Object in,
int inOffset,
long[] out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static long[] |
arrayToSafeLongArray(java.lang.Object in,
long[] out,
boolean signed)
Deprecated.
|
static long[] |
arrayToSafeLongArray(java.lang.Object in,
long[] out,
boolean srcSigned,
boolean dstSigned) |
static short[] |
arrayToSafeShortArray(java.lang.Object in,
int inOffset,
short[] out,
int outOffset,
int length,
boolean signed)
Deprecated.
|
static short[] |
arrayToSafeShortArray(java.lang.Object in,
int inOffset,
short[] out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static short[] |
arrayToSafeShortArray(java.lang.Object in,
short[] out,
boolean signed)
Deprecated.
|
static short[] |
arrayToSafeShortArray(java.lang.Object in,
short[] out,
boolean srcSigned,
boolean dstSigned) |
static short[] |
arrayToShortArray(java.lang.Object in,
boolean signed)
Convert and return the 'in' array as a short array.
|
static short[] |
arrayToShortArray(java.lang.Object in,
int inOffset,
short[] out,
int outOffset,
int length,
boolean signed)
Convert and return the 'in' array in 'out' short array.
|
static short[] |
arrayToShortArray(java.lang.Object in,
short[] out,
boolean signed)
Convert and return the 'in' array in 'out' short array.
|
static java.lang.String |
arrayToString(java.lang.Object array)
Return the specified 1D array as string
Default representation use ':' as separator character ex : [0,1,2,3,4] --> "0:1:2:3:4" |
static java.lang.String |
arrayToString(java.lang.Object array,
boolean signed,
boolean hexa,
java.lang.String separator,
int size)
Return the specified 1D array as string
ex : [0,1,2,3,4] --> "0:1:2:3:4" ex : [Obj0,Obj1,Obj2,Obj3,Obj4] --> "Obj0:Obj1:Obj2:Obj3:Obj4" |
static java.lang.Object |
byteArrayToArray(byte[] in,
int inOffset,
java.lang.Object out,
int outOffset,
int length,
boolean signed)
Convert and return the 'in' byte array in 'out' array type.
|
static java.lang.Object |
byteArrayToArray(byte[] in,
java.lang.Object out,
boolean signed)
Convert and return the 'in' byte array in 'out' array type.
|
static byte[] |
byteArrayToByteArray(byte[] in,
int inOffset,
byte[] out,
int outOffset,
int length) |
static double[] |
byteArrayToDoubleArray(byte[] array,
boolean signed) |
static double[] |
byteArrayToDoubleArray(byte[] in,
int inOffset,
double[] out,
int outOffset,
int length,
boolean signed) |
static float[] |
byteArrayToFloatArray(byte[] array,
boolean signed) |
static float[] |
byteArrayToFloatArray(byte[] in,
int inOffset,
float[] out,
int outOffset,
int length,
boolean signed) |
static int[] |
byteArrayToIntArray(byte[] array,
boolean signed) |
static int[] |
byteArrayToIntArray(byte[] in,
int inOffset,
int[] out,
int outOffset,
int length,
boolean signed) |
static long[] |
byteArrayToLongArray(byte[] array,
boolean signed) |
static long[] |
byteArrayToLongArray(byte[] in,
int inOffset,
long[] out,
int outOffset,
int length,
boolean signed) |
static java.lang.Object |
byteArrayToSafeArray(byte[] in,
int inOffset,
java.lang.Object out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static java.lang.Object |
byteArrayToSafeArray(byte[] in,
java.lang.Object out,
boolean srcSigned,
boolean dstSigned) |
static byte[] |
byteArrayToSafeByteArray(byte[] in,
int inOffset,
byte[] out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static short[] |
byteArrayToShortArray(byte[] array,
boolean signed) |
static short[] |
byteArrayToShortArray(byte[] in,
int inOffset,
short[] out,
int outOffset,
int length,
boolean signed) |
static java.lang.Object |
copyOf(java.lang.Object array)
Do a copy of the specified array
|
static void |
copyRect(java.lang.Object src,
java.awt.Dimension srcDim,
java.awt.Rectangle srcRegion,
java.lang.Object dst,
java.awt.Dimension dstDim,
java.awt.Point dstPt,
boolean signed)
Copy a region of data from
src to dst . |
static java.lang.Object |
createArray(DataType dataType,
int len)
Create a new 1D array with specified data type and length
|
static java.lang.Object |
createArray(int dataType,
int len)
Deprecated.
use
createArray(DataType, int) instead |
static byte[] |
deInterleave(byte[] in,
int inOffset,
int step,
byte[] out,
int outOffset,
int size)
De interleave data from 'in' array and return the result in the 'out' array.
|
static java.lang.Object |
doubleArrayToArray(double[] in,
int inOffset,
java.lang.Object out,
int outOffset,
int length)
Convert and return the 'in' double array in 'out' array type.
|
static java.lang.Object |
doubleArrayToArray(double[] in,
java.lang.Object out)
Convert and return the 'in' double array in 'out' array type.
|
static byte[] |
doubleArrayToByteArray(double[] array) |
static byte[] |
doubleArrayToByteArray(double[] in,
int inOffset,
byte[] out,
int outOffset,
int length) |
static double[] |
doubleArrayToDoubleArray(double[] in,
int inOffset,
double[] out,
int outOffset,
int length) |
static float[] |
doubleArrayToFloatArray(double[] array) |
static float[] |
doubleArrayToFloatArray(double[] in,
int inOffset,
float[] out,
int outOffset,
int length) |
static int[] |
doubleArrayToIntArray(double[] array) |
static int[] |
doubleArrayToIntArray(double[] in,
int inOffset,
int[] out,
int outOffset,
int length) |
static long[] |
doubleArrayToLongArray(double[] array) |
static long[] |
doubleArrayToLongArray(double[] in,
int inOffset,
long[] out,
int outOffset,
int length) |
static java.lang.Object |
doubleArrayToSafeArray(double[] in,
int inOffset,
java.lang.Object out,
int outOffset,
int length,
boolean signed) |
static java.lang.Object |
doubleArrayToSafeArray(double[] in,
java.lang.Object out,
boolean signed) |
static byte[] |
doubleArrayToSafeByteArray(double[] array,
boolean signed) |
static byte[] |
doubleArrayToSafeByteArray(double[] in,
int inOffset,
byte[] out,
int outOffset,
int length,
boolean signed) |
static int[] |
doubleArrayToSafeIntArray(double[] array,
boolean signed) |
static int[] |
doubleArrayToSafeIntArray(double[] in,
int inOffset,
int[] out,
int outOffset,
int length,
boolean signed) |
static long[] |
doubleArrayToSafeLongArray(double[] array,
boolean signed) |
static long[] |
doubleArrayToSafeLongArray(double[] in,
int inOffset,
long[] out,
int outOffset,
int length,
boolean signed) |
static short[] |
doubleArrayToSafeShortArray(double[] array,
boolean signed) |
static short[] |
doubleArrayToSafeShortArray(double[] in,
int inOffset,
short[] out,
int outOffset,
int length,
boolean signed) |
static short[] |
doubleArrayToShortArray(double[] array) |
static short[] |
doubleArrayToShortArray(double[] in,
int inOffset,
short[] out,
int outOffset,
int length) |
static void |
fill(byte[] array,
int from,
int to,
byte value)
Same as
Arrays.fill(byte[], int, int, byte) |
static void |
fill(double[] array,
int from,
int to,
double value)
Same as
Arrays.fill(double[], int, int, double) |
static void |
fill(float[] array,
int from,
int to,
float value)
Same as
Arrays.fill(float[], int, int, float) |
static void |
fill(int[] array,
int from,
int to,
int value)
Same as
Arrays.fill(int[], int, int, int) |
static void |
fill(long[] array,
int from,
int to,
long value)
Same as
Arrays.fill(long[], int, int, long) |
static void |
fill(java.lang.Object array,
double value)
Same as Arrays.fill() but applied to Object array from a double value
|
static void |
fill(java.lang.Object array,
int from,
int to,
double value)
Same as Arrays.fill() but applied to Object array from a double value
|
static void |
fill(short[] array,
int from,
int to,
short value)
Same as
Arrays.fill(short[], int, int, short) |
static java.lang.Object |
floatArrayToArray(float[] in,
int inOffset,
java.lang.Object out,
int outOffset,
int length)
Convert and return the 'in' float array in 'out' array type.
|
static java.lang.Object |
floatArrayToArray(float[] in,
java.lang.Object out)
Convert and return the 'in' float array in 'out' array type.
|
static byte[] |
floatArrayToByteArray(float[] array) |
static byte[] |
floatArrayToByteArray(float[] in,
int inOffset,
byte[] out,
int outOffset,
int length) |
static double[] |
floatArrayToDoubleArray(float[] array) |
static double[] |
floatArrayToDoubleArray(float[] in,
int inOffset,
double[] out,
int outOffset,
int length) |
static float[] |
floatArrayToFloatArray(float[] in,
int inOffset,
float[] out,
int outOffset,
int length) |
static int[] |
floatArrayToIntArray(float[] array) |
static int[] |
floatArrayToIntArray(float[] in,
int inOffset,
int[] out,
int outOffset,
int length) |
static long[] |
floatArrayToLongArray(float[] array) |
static long[] |
floatArrayToLongArray(float[] in,
int inOffset,
long[] out,
int outOffset,
int length) |
static java.lang.Object |
floatArrayToSafeArray(float[] in,
int inOffset,
java.lang.Object out,
int outOffset,
int length,
boolean signed) |
static java.lang.Object |
floatArrayToSafeArray(float[] in,
java.lang.Object out,
boolean signed) |
static byte[] |
floatArrayToSafeByteArray(float[] array,
boolean signed) |
static byte[] |
floatArrayToSafeByteArray(float[] in,
int inOffset,
byte[] out,
int outOffset,
int length,
boolean signed) |
static int[] |
floatArrayToSafeIntArray(float[] array,
boolean signed) |
static int[] |
floatArrayToSafeIntArray(float[] in,
int inOffset,
int[] out,
int outOffset,
int length,
boolean signed) |
static long[] |
floatArrayToSafeLongArray(float[] array,
boolean signed) |
static long[] |
floatArrayToSafeLongArray(float[] in,
int inOffset,
long[] out,
int outOffset,
int length,
boolean signed) |
static short[] |
floatArrayToSafeShortArray(float[] array,
boolean signed) |
static short[] |
floatArrayToSafeShortArray(float[] in,
int inOffset,
short[] out,
int outOffset,
int length,
boolean signed) |
static short[] |
floatArrayToShortArray(float[] array) |
static short[] |
floatArrayToShortArray(float[] in,
int inOffset,
short[] out,
int outOffset,
int length) |
static byte[] |
getInterleavedData(byte[] in,
int inOffset,
int step,
byte[] out,
int outOffset,
int size)
Retrieve interleaved byte data from 'in' array and return the result in the 'out' array.
|
static int |
getTotalLenght(byte[] array)
Deprecated.
use
getTotalLength(byte[]) instead |
static int |
getTotalLenght(double[] array)
Deprecated.
use
getTotalLength(double[]) instead |
static int |
getTotalLenght(float[] array)
Deprecated.
use
getTotalLength(float[]) instead |
static int |
getTotalLenght(int[] array)
Deprecated.
use
getTotalLength(int[]) instead |
static int |
getTotalLenght(short[] array)
Deprecated.
use
getTotalLength(short[]) instead |
static int |
getTotalLength(byte[] array)
Return the total number of element of the specified array
|
static int |
getTotalLength(double[] array)
Return the total number of element of the specified array
|
static int |
getTotalLength(float[] array)
Return the total number of element of the specified array
|
static int |
getTotalLength(int[] array)
Return the total number of element of the specified array
|
static int |
getTotalLength(long[] array)
Return the total number of element of the specified array
|
static int |
getTotalLength(short[] array)
Return the total number of element of the specified array
|
static double |
getValue(byte[] array,
int offset,
boolean signed)
Get value as double from specified byte array and offset.
|
static double |
getValue(double[] array,
int offset)
Get value as double from specified double array and offset.
|
static double |
getValue(float[] array,
int offset)
Get value as double from specified float array and offset.
|
static double |
getValue(int[] array,
int offset,
boolean signed)
Get value as double from specified int array and offset.
|
static double |
getValue(long[] array,
int offset,
boolean signed)
Get value as double from specified long array and offset.
|
static double |
getValue(java.lang.Object array,
int offset,
boolean signed)
Get value as double from specified 1D array and offset.
|
static double |
getValue(java.lang.Object array,
int offset,
DataType dataType)
Get value as double from specified 1D array and offset.
|
static double |
getValue(java.lang.Object array,
int offset,
int dataType,
boolean signed)
Deprecated.
use
getValue(Object, int, DataType) instead |
static double |
getValue(short[] array,
int offset,
boolean signed)
Get value as double from specified short array and offset.
|
static float |
getValueAsFloat(byte[] array,
int offset,
boolean signed)
Get value as float from specified byte array and offset.
|
static float |
getValueAsFloat(double[] array,
int offset)
Get value as float from specified double array and offset.
|
static float |
getValueAsFloat(float[] array,
int offset)
Get value as float from specified float array and offset.
|
static float |
getValueAsFloat(int[] array,
int offset,
boolean signed)
Get value as float from specified int array and offset.
|
static float |
getValueAsFloat(long[] array,
int offset,
boolean signed)
Get value as float from specified long array and offset.
|
static float |
getValueAsFloat(java.lang.Object array,
int offset,
boolean signed)
Get value as float from specified 1D array and offset.
|
static float |
getValueAsFloat(java.lang.Object array,
int offset,
DataType dataType)
Get value as float from specified 1D array and offset.
|
static float |
getValueAsFloat(java.lang.Object array,
int offset,
int dataType,
boolean signed)
Deprecated.
use
getValueAsFloat(Object, int, DataType) instead |
static float |
getValueAsFloat(short[] array,
int offset,
boolean signed)
Get value as float from specified short array and offset.
|
static int |
getValueAsInt(byte[] array,
int offset,
boolean signed)
Get value as int from specified byte array and offset.
|
static int |
getValueAsInt(double[] array,
int offset)
Get value as int from specified double array and offset.
|
static int |
getValueAsInt(float[] array,
int offset)
Get value as int from specified float array and offset.
|
static int |
getValueAsInt(int[] array,
int offset)
Get value as int from specified int array and offset.
|
static int |
getValueAsInt(long[] array,
int offset)
Get value as int from specified long array and offset.
|
static int |
getValueAsInt(java.lang.Object array,
int offset,
boolean signed)
Get value as integer from specified 1D array and offset.
|
static int |
getValueAsInt(java.lang.Object array,
int offset,
DataType dataType)
Get value as integer from specified 1D array and offset.
|
static int |
getValueAsInt(java.lang.Object array,
int offset,
int dataType,
boolean signed)
Deprecated.
use
getValueAsInt(Object, int, DataType) instead |
static int |
getValueAsInt(short[] array,
int offset,
boolean signed)
Get value as int from specified short array and offset.
|
static long |
getValueAsLong(byte[] array,
int offset,
boolean signed)
Get value as int from specified byte array and offset.
|
static long |
getValueAsLong(double[] array,
int offset)
Get value as int from specified double array and offset.
|
static long |
getValueAsLong(float[] array,
int offset)
Get value as int from specified float array and offset.
|
static long |
getValueAsLong(int[] array,
int offset,
boolean signed)
Get value as int from specified int array and offset.
|
static long |
getValueAsLong(long[] array,
int offset)
Get value as int from specified long array and offset.
|
static long |
getValueAsLong(java.lang.Object array,
int offset,
boolean signed)
Get value as integer from specified 1D array and offset.
|
static long |
getValueAsLong(java.lang.Object array,
int offset,
DataType dataType)
Get value as integer from specified 1D array and offset.
|
static long |
getValueAsLong(java.lang.Object array,
int offset,
int dataType,
boolean signed)
Deprecated.
use
getValueAsLong(Object, int, DataType) instead |
static long |
getValueAsLong(short[] array,
int offset,
boolean signed)
Get value as int from specified short array and offset.
|
static void |
innerCopy(byte[] array,
int from,
int to,
int cnt)
Copy 'cnt' elements from 'from' index to 'to' index in a safe manner (no overlap)
|
static void |
innerCopy(double[] array,
int from,
int to,
int cnt)
Copy 'cnt' elements from 'from' index to 'to' index in a safe manner (no overlap)
|
static void |
innerCopy(float[] array,
int from,
int to,
int cnt)
Copy 'cnt' elements from 'from' index to 'to' index in a safe manner (no overlap)
|
static void |
innerCopy(int[] array,
int from,
int to,
int cnt)
Copy 'cnt' elements from 'from' index to 'to' index in a safe manner (no overlap)
|
static void |
innerCopy(long[] array,
int from,
int to,
int cnt)
Copy 'cnt' elements from 'from' index to 'to' index in a safe manner (no overlap)
|
static void |
innerCopy(java.lang.Object array,
int from,
int to,
int cnt)
Copy 'cnt' elements from 'from' index to 'to' index in a safe manner.
|
static void |
innerCopy(short[] array,
int from,
int to,
int cnt)
Copy 'cnt' elements from 'from' index to 'to' index in a safe manner (no overlap)
|
static java.lang.Object |
intArrayToArray(int[] in,
int inOffset,
java.lang.Object out,
int outOffset,
int length,
boolean signed)
Convert and return the 'in' integer array in 'out' array type.
|
static java.lang.Object |
intArrayToArray(int[] in,
java.lang.Object out,
boolean signed)
Convert and return the 'in' integer array in 'out' array type.
|
static byte[] |
intArrayToByteArray(int[] array) |
static byte[] |
intArrayToByteArray(int[] in,
int inOffset,
byte[] out,
int outOffset,
int length) |
static double[] |
intArrayToDoubleArray(int[] array,
boolean signed) |
static double[] |
intArrayToDoubleArray(int[] in,
int inOffset,
double[] out,
int outOffset,
int length,
boolean signed) |
static float[] |
intArrayToFloatArray(int[] array,
boolean signed) |
static float[] |
intArrayToFloatArray(int[] in,
int inOffset,
float[] out,
int outOffset,
int length,
boolean signed) |
static int[] |
intArrayToIntArray(int[] in,
int inOffset,
int[] out,
int outOffset,
int length) |
static long[] |
intArrayToLongArray(int[] array,
boolean signed) |
static long[] |
intArrayToLongArray(int[] in,
int inOffset,
long[] out,
int outOffset,
int length,
boolean signed) |
static java.lang.Object |
intArrayToSafeArray(int[] in,
int inOffset,
java.lang.Object out,
int outOffset,
int length,
boolean signed)
Deprecated.
|
static java.lang.Object |
intArrayToSafeArray(int[] in,
int inOffset,
java.lang.Object out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static java.lang.Object |
intArrayToSafeArray(int[] in,
java.lang.Object out,
boolean signed)
Deprecated.
Use
intArrayToSafeArray(int[], Object, boolean, boolean) instead. |
static java.lang.Object |
intArrayToSafeArray(int[] in,
java.lang.Object out,
boolean srcSigned,
boolean dstSigned) |
static byte[] |
intArrayToSafeByteArray(int[] array,
boolean signed) |
static byte[] |
intArrayToSafeByteArray(int[] in,
int inOffset,
byte[] out,
int outOffset,
int length,
boolean signed)
Deprecated.
|
static byte[] |
intArrayToSafeByteArray(int[] in,
int inOffset,
byte[] out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static int[] |
intArrayToSafeIntArray(int[] in,
int inOffset,
int[] out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static short[] |
intArrayToSafeShortArray(int[] array,
boolean signed) |
static short[] |
intArrayToSafeShortArray(int[] in,
int inOffset,
short[] out,
int outOffset,
int length,
boolean signed)
Deprecated.
|
static short[] |
intArrayToSafeShortArray(int[] in,
int inOffset,
short[] out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static short[] |
intArrayToShortArray(int[] array) |
static short[] |
intArrayToShortArray(int[] in,
int inOffset,
short[] out,
int outOffset,
int length) |
static java.lang.Object |
longArrayToArray(long[] in,
int inOffset,
java.lang.Object out,
int outOffset,
int length,
boolean signed)
Convert and return the 'in' long array in 'out' array type.
|
static java.lang.Object |
longArrayToArray(long[] in,
java.lang.Object out,
boolean signed)
Convert and return the 'in' long array in 'out' array type.
|
static byte[] |
longArrayToByteArray(long[] array) |
static byte[] |
longArrayToByteArray(long[] in,
int inOffset,
byte[] out,
int outOffset,
int length) |
static double[] |
longArrayToDoubleArray(long[] array,
boolean signed) |
static double[] |
longArrayToDoubleArray(long[] in,
int inOffset,
double[] out,
int outOffset,
int length,
boolean signed) |
static float[] |
longArrayToFloatArray(long[] array,
boolean signed) |
static float[] |
longArrayToFloatArray(long[] in,
int inOffset,
float[] out,
int outOffset,
int length,
boolean signed) |
static int[] |
longArrayToIntArray(long[] in,
int inOffset,
int[] out,
int outOffset,
int length) |
static long[] |
longArrayToLongArray(long[] in,
int inOffset,
long[] out,
int outOffset,
int length) |
static java.lang.Object |
longArrayToSafeArray(long[] in,
int inOffset,
java.lang.Object out,
int outOffset,
int length,
boolean signed)
Deprecated.
|
static java.lang.Object |
longArrayToSafeArray(long[] in,
int inOffset,
java.lang.Object out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static java.lang.Object |
longArrayToSafeArray(long[] in,
java.lang.Object out,
boolean signed)
Deprecated.
|
static java.lang.Object |
longArrayToSafeArray(long[] in,
java.lang.Object out,
boolean srcSigned,
boolean dstSigned) |
static byte[] |
longArrayToSafeByteArray(long[] array,
boolean signed) |
static byte[] |
longArrayToSafeByteArray(long[] in,
int inOffset,
byte[] out,
int outOffset,
int length,
boolean signed)
Deprecated.
|
static byte[] |
longArrayToSafeByteArray(long[] in,
int inOffset,
byte[] out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static int[] |
longArrayToSafeIntArray(long[] array,
boolean signed) |
static int[] |
longArrayToSafeIntArray(long[] in,
int inOffset,
int[] out,
int outOffset,
int length,
boolean signed)
Deprecated.
|
static int[] |
longArrayToSafeIntArray(long[] in,
int inOffset,
int[] out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static long[] |
longArrayToSafeLongArray(long[] in,
int inOffset,
long[] out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static short[] |
longArrayToSafeShortArray(long[] array,
boolean signed) |
static short[] |
longArrayToSafeShortArray(long[] in,
int inOffset,
short[] out,
int outOffset,
int length,
boolean signed)
Deprecated.
|
static short[] |
longArrayToSafeShortArray(long[] in,
int inOffset,
short[] out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static short[] |
longArrayToShortArray(long[] array) |
static short[] |
longArrayToShortArray(long[] in,
int inOffset,
short[] out,
int outOffset,
int length) |
static void |
setValue(byte[] array,
int offset,
double value)
Set value at specified offset as double value.
|
static void |
setValue(double[] array,
int offset,
double value)
Set value at specified offset as double value.
|
static void |
setValue(float[] array,
int offset,
double value)
Set value at specified offset as double value.
|
static void |
setValue(int[] array,
int offset,
double value)
Set value at specified offset as double value.
|
static void |
setValue(long[] array,
int offset,
double value)
Set value at specified offset as double value.
|
static void |
setValue(java.lang.Object array,
int offset,
DataType dataType,
double value)
Set value at specified offset as double value.
|
static void |
setValue(java.lang.Object array,
int offset,
double value)
Set value at specified offset as double value.
|
static void |
setValue(java.lang.Object array,
int offset,
int dataType,
double value)
Deprecated.
use
setValue(Object, int, DataType, double) instead |
static void |
setValue(short[] array,
int offset,
double value)
Set value at specified offset as double value.
|
static java.lang.Object |
shortArrayToArray(short[] in,
int inOffset,
java.lang.Object out,
int outOffset,
int length,
boolean signed)
Convert and return the 'in' short array in 'out' array type.
|
static java.lang.Object |
shortArrayToArray(short[] in,
java.lang.Object out,
boolean signed)
Convert and return the 'in' short array in 'out' array type.
|
static byte[] |
shortArrayToByteArray(short[] array) |
static byte[] |
shortArrayToByteArray(short[] in,
int inOffset,
byte[] out,
int outOffset,
int length) |
static double[] |
shortArrayToDoubleArray(short[] array,
boolean signed) |
static double[] |
shortArrayToDoubleArray(short[] in,
int inOffset,
double[] out,
int outOffset,
int length,
boolean signed) |
static float[] |
shortArrayToFloatArray(short[] array,
boolean signed) |
static float[] |
shortArrayToFloatArray(short[] in,
int inOffset,
float[] out,
int outOffset,
int length,
boolean signed) |
static int[] |
shortArrayToIntArray(short[] array,
boolean signed) |
static int[] |
shortArrayToIntArray(short[] in,
int inOffset,
int[] out,
int outOffset,
int length,
boolean signed) |
static long[] |
shortArrayToLongArray(short[] array,
boolean signed) |
static long[] |
shortArrayToLongArray(short[] in,
int inOffset,
long[] out,
int outOffset,
int length,
boolean signed) |
static java.lang.Object |
shortArrayToSafeArray(short[] in,
int inOffset,
java.lang.Object out,
int outOffset,
int length,
boolean signed)
Deprecated.
|
static java.lang.Object |
shortArrayToSafeArray(short[] in,
int inOffset,
java.lang.Object out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static java.lang.Object |
shortArrayToSafeArray(short[] in,
java.lang.Object out,
boolean signed)
Deprecated.
|
static java.lang.Object |
shortArrayToSafeArray(short[] in,
java.lang.Object out,
boolean srcSigned,
boolean dstSigned) |
static byte[] |
shortArrayToSafeByteArray(short[] array,
boolean signed) |
static byte[] |
shortArrayToSafeByteArray(short[] in,
int inOffset,
byte[] out,
int outOffset,
int length,
boolean signed)
Deprecated.
|
static byte[] |
shortArrayToSafeByteArray(short[] in,
int inOffset,
byte[] out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static short[] |
shortArrayToSafeShortArray(short[] in,
int inOffset,
short[] out,
int outOffset,
int length,
boolean srcSigned,
boolean dstSigned) |
static short[] |
shortArrayToShortArray(short[] in,
int inOffset,
short[] out,
int outOffset,
int length) |
static java.lang.Object |
stringToArray(java.lang.String value,
DataType dataType)
Return the specified string containing separated values as a 1D array
By default separator is assumed to be ':' character ex : "0:1:2:3:4" --> [0,1,2,3,4] |
static java.lang.Object |
stringToArray(java.lang.String value,
DataType dataType,
boolean hexa,
java.lang.String separator)
Return the specified string containing separated values as a 1D array
ex : "0:1:2:3:4" --> [0,1,2,3,4] |
static java.lang.Object |
stringToArray(java.lang.String value,
int dataType)
Deprecated.
use
stringToArray(String, DataType) instead |
static java.lang.Object |
stringToArray(java.lang.String value,
int dataType,
boolean hexa,
java.lang.String separator)
Deprecated.
use
stringToArray(String, DataType, boolean, String) instead |
static boolean[] |
toBooleanArray(byte[] array)
Convert a byte array (unpacked form : 1 byte --> 1 boolean) to a boolean array
|
static boolean[] |
toBooleanArray(byte[] in,
boolean[] out,
int offset)
Convert a boolean array to a byte array (unpacked form : 1 boolean --> 1 byte)
The resulting array is returned in 'out' and from the specified if any.
|
static byte[] |
toByteArray(boolean[] array)
Convert a boolean array to a byte array (unpacked form : 1 boolean --> 1 byte)
|
static byte[] |
toByteArray(boolean[] in,
byte[] out,
int offset)
Convert a boolean array to a byte array (unpacked form : 1 boolean --> 1 byte)
The resulting array is returned in 'out' and from the specified if any.
|
static byte[] |
toByteArray1D(byte[] in,
byte[] out,
int offset)
Return the 'in' array as a single dimension array.
|
static double[] |
toDoubleArray1D(double[] in,
double[] out,
int offset)
Return the 'in' array as a single dimension array.
|
static float[] |
toFloatArray1D(float[] in,
float[] out,
int offset)
Return the 'in' array as a single dimension array.
|
static int[] |
toIntArray1D(int[] in,
int[] out,
int offset)
Return the 'in' array as a single dimension array.
|
static long[] |
toLongArray1D(long[] in,
long[] out,
int offset)
Return the 'in' array as a single dimension array.
|
static short[] |
toShortArray1D(short[] in,
short[] out,
int offset)
Return the 'in' array as a single dimension array.
|
public Array1DUtil()
public static int getTotalLength(byte[] array)
public static int getTotalLength(short[] array)
public static int getTotalLength(int[] array)
public static int getTotalLength(long[] array)
public static int getTotalLength(float[] array)
public static int getTotalLength(double[] array)
@Deprecated public static int getTotalLenght(byte[] array)
getTotalLength(byte[])
instead@Deprecated public static int getTotalLenght(short[] array)
getTotalLength(short[])
instead@Deprecated public static int getTotalLenght(int[] array)
getTotalLength(int[])
instead@Deprecated public static int getTotalLenght(float[] array)
getTotalLength(float[])
instead@Deprecated public static int getTotalLenght(double[] array)
getTotalLength(double[])
insteadpublic static java.lang.Object createArray(DataType dataType, int len)
@Deprecated public static java.lang.Object createArray(int dataType, int len)
createArray(DataType, int)
insteadpublic static java.lang.Object allocIfNull(java.lang.Object out, DataType dataType, int len)
public static boolean[] allocIfNull(boolean[] out, int len)
public static byte[] allocIfNull(byte[] out, int len)
public static short[] allocIfNull(short[] out, int len)
public static int[] allocIfNull(int[] out, int len)
public static long[] allocIfNull(long[] out, int len)
public static float[] allocIfNull(float[] out, int len)
public static double[] allocIfNull(double[] out, int len)
public static java.lang.Object copyOf(java.lang.Object array)
public static double getValue(java.lang.Object array, int offset, boolean signed)
getValue(Object, int, DataType)
we you know the DataType as it is faster.public static double getValue(java.lang.Object array, int offset, DataType dataType)
@Deprecated public static double getValue(java.lang.Object array, int offset, int dataType, boolean signed)
getValue(Object, int, DataType)
insteadpublic static float getValueAsFloat(java.lang.Object array, int offset, boolean signed)
public static float getValueAsFloat(java.lang.Object array, int offset, DataType dataType)
@Deprecated public static float getValueAsFloat(java.lang.Object array, int offset, int dataType, boolean signed)
getValueAsFloat(Object, int, DataType)
insteadpublic static int getValueAsInt(java.lang.Object array, int offset, boolean signed)
public static int getValueAsInt(java.lang.Object array, int offset, DataType dataType)
@Deprecated public static int getValueAsInt(java.lang.Object array, int offset, int dataType, boolean signed)
getValueAsInt(Object, int, DataType)
insteadpublic static long getValueAsLong(java.lang.Object array, int offset, boolean signed)
public static long getValueAsLong(java.lang.Object array, int offset, DataType dataType)
@Deprecated public static long getValueAsLong(java.lang.Object array, int offset, int dataType, boolean signed)
getValueAsLong(Object, int, DataType)
insteadpublic static void setValue(java.lang.Object array, int offset, double value)
public static void setValue(java.lang.Object array, int offset, DataType dataType, double value)
@Deprecated public static void setValue(java.lang.Object array, int offset, int dataType, double value)
setValue(Object, int, DataType, double)
insteadpublic static double getValue(byte[] array, int offset, boolean signed)
public static double getValue(short[] array, int offset, boolean signed)
public static double getValue(int[] array, int offset, boolean signed)
public static double getValue(long[] array, int offset, boolean signed)
public static double getValue(float[] array, int offset)
public static double getValue(double[] array, int offset)
public static float getValueAsFloat(byte[] array, int offset, boolean signed)
public static float getValueAsFloat(short[] array, int offset, boolean signed)
public static float getValueAsFloat(int[] array, int offset, boolean signed)
public static float getValueAsFloat(long[] array, int offset, boolean signed)
public static float getValueAsFloat(float[] array, int offset)
public static float getValueAsFloat(double[] array, int offset)
public static int getValueAsInt(byte[] array, int offset, boolean signed)
public static int getValueAsInt(short[] array, int offset, boolean signed)
public static int getValueAsInt(int[] array, int offset)
public static int getValueAsInt(long[] array, int offset)
public static int getValueAsInt(float[] array, int offset)
public static int getValueAsInt(double[] array, int offset)
public static long getValueAsLong(byte[] array, int offset, boolean signed)
public static long getValueAsLong(short[] array, int offset, boolean signed)
public static long getValueAsLong(int[] array, int offset, boolean signed)
public static long getValueAsLong(long[] array, int offset)
public static long getValueAsLong(float[] array, int offset)
public static long getValueAsLong(double[] array, int offset)
public static void setValue(byte[] array, int offset, double value)
public static void setValue(short[] array, int offset, double value)
public static void setValue(int[] array, int offset, double value)
public static void setValue(long[] array, int offset, double value)
public static void setValue(float[] array, int offset, double value)
public static void setValue(double[] array, int offset, double value)
public static boolean arrayByteCompare(byte[] array1, byte[] array2)
public static boolean arrayShortCompare(short[] array1, short[] array2)
public static boolean arrayIntCompare(int[] array1, int[] array2)
public static boolean arrayLongCompare(long[] array1, long[] array2)
public static boolean arrayFloatCompare(float[] array1, float[] array2)
public static boolean arrayDoubleCompare(double[] array1, double[] array2)
public static void copyRect(java.lang.Object src, java.awt.Dimension srcDim, java.awt.Rectangle srcRegion, java.lang.Object dst, java.awt.Dimension dstDim, java.awt.Point dstPt, boolean signed)
src
to dst
.src
- source data array (should be same type than destination data array)srcDim
- source rectangular data dimension (array length should be >= (Dimension.width * Dimension.heigth))srcRegion
- source rectangular region to copy (assume the whole data based on srcDim if null)dst
- destination data array (should be same type than source data array)dstDim
- destination rectangular data dimension (array length should be >= (Dimension.width * Dimension.heigth))dstPt
- destination X,Y position (assume [0,0] if null)signed
- if the source data array should be considered as signed data (meaningful for integer data type only)public static void fill(java.lang.Object array, double value)
public static void fill(java.lang.Object array, int from, int to, double value)
public static void fill(byte[] array, int from, int to, byte value)
Arrays.fill(byte[], int, int, byte)
public static void fill(short[] array, int from, int to, short value)
Arrays.fill(short[], int, int, short)
public static void fill(int[] array, int from, int to, int value)
Arrays.fill(int[], int, int, int)
public static void fill(long[] array, int from, int to, long value)
Arrays.fill(long[], int, int, long)
public static void fill(float[] array, int from, int to, float value)
Arrays.fill(float[], int, int, float)
public static void fill(double[] array, int from, int to, double value)
Arrays.fill(double[], int, int, double)
public static void innerCopy(java.lang.Object array, int from, int to, int cnt)
public static void innerCopy(byte[] array, int from, int to, int cnt)
public static void innerCopy(short[] array, int from, int to, int cnt)
public static void innerCopy(int[] array, int from, int to, int cnt)
public static void innerCopy(long[] array, int from, int to, int cnt)
public static void innerCopy(float[] array, int from, int to, int cnt)
public static void innerCopy(double[] array, int from, int to, int cnt)
public static byte[] toByteArray1D(byte[] in, byte[] out, int offset)
public static short[] toShortArray1D(short[] in, short[] out, int offset)
public static int[] toIntArray1D(int[] in, int[] out, int offset)
public static long[] toLongArray1D(long[] in, long[] out, int offset)
public static float[] toFloatArray1D(float[] in, float[] out, int offset)
public static double[] toDoubleArray1D(double[] in, double[] out, int offset)
public static java.lang.Object arrayToArray(java.lang.Object in, int inOffset, java.lang.Object out, int outOffset, int length, boolean signed)
in
- input arrayinOffset
- position where we start read data fromout
- output array which is used to receive result (and so define wanted type)outOffset
- position where we start to write data tolength
- number of value to convert (-1 means we will use the maximum possible length)signed
- if input data are integer type then we assume them as signed datapublic static java.lang.Object arrayToArray(java.lang.Object in, java.lang.Object out, boolean signed)
in
- input arrayout
- output array which is used to receive result (and so define wanted type)signed
- if input data are integer type then we assume them as signed datapublic static java.lang.Object doubleArrayToArray(double[] in, int inOffset, java.lang.Object out, int outOffset, int length)
in
- input arrayinOffset
- position where we start read data fromout
- output array which is used to receive result (and so define wanted type)outOffset
- position where we start to write data tolength
- number of value to convert (-1 means we will use the maximum possible length)public static java.lang.Object doubleArrayToArray(double[] in, java.lang.Object out)
in
- input arrayout
- output array which is used to receive result (and so define wanted type)public static java.lang.Object floatArrayToArray(float[] in, int inOffset, java.lang.Object out, int outOffset, int length)
in
- input arrayinOffset
- position where we start read data fromout
- output array which is used to receive result (and so define wanted type)outOffset
- position where we start to write data tolength
- number of value to convert (-1 means we will use the maximum possible length)public static java.lang.Object floatArrayToArray(float[] in, java.lang.Object out)
in
- input arrayout
- output array which is used to receive result (and so define wanted type)public static java.lang.Object longArrayToArray(long[] in, int inOffset, java.lang.Object out, int outOffset, int length, boolean signed)
in
- input arrayinOffset
- position where we start read data fromout
- output array which is used to receive result (and so define wanted type)outOffset
- position where we start to write data tolength
- number of value to convert (-1 means we will use the maximum possible length)signed
- assume input data as signed datapublic static java.lang.Object longArrayToArray(long[] in, java.lang.Object out, boolean signed)
in
- input arrayout
- output array which is used to receive result (and so define wanted type)signed
- assume input data as signed datapublic static java.lang.Object intArrayToArray(int[] in, int inOffset, java.lang.Object out, int outOffset, int length, boolean signed)
in
- input arrayinOffset
- position where we start read data fromout
- output array which is used to receive result (and so define wanted type)outOffset
- position where we start to write data tolength
- number of value to convert (-1 means we will use the maximum possible length)signed
- assume input data as signed datapublic static java.lang.Object intArrayToArray(int[] in, java.lang.Object out, boolean signed)
in
- input arrayout
- output array which is used to receive result (and so define wanted type)signed
- assume input data as signed datapublic static java.lang.Object shortArrayToArray(short[] in, int inOffset, java.lang.Object out, int outOffset, int length, boolean signed)
in
- input arrayinOffset
- position where we start read data fromout
- output array which is used to receive result (and so define wanted type)outOffset
- position where we start to write data tolength
- number of value to convert (-1 means we will use the maximum possible length)signed
- assume input data as signed datapublic static java.lang.Object shortArrayToArray(short[] in, java.lang.Object out, boolean signed)
in
- input arrayout
- output array which is used to receive result (and so define wanted type)signed
- assume input data as signed datapublic static java.lang.Object byteArrayToArray(byte[] in, int inOffset, java.lang.Object out, int outOffset, int length, boolean signed)
in
- input arrayinOffset
- position where we start read data fromout
- output array which is used to receive result (and so define wanted type)outOffset
- position where we start to write data tolength
- number of value to convert (-1 means we will use the maximum possible length)signed
- assume input data as signed datapublic static java.lang.Object byteArrayToArray(byte[] in, java.lang.Object out, boolean signed)
in
- input arrayout
- output array which is used to receive result (and so define wanted type)signed
- assume input data as signed datapublic static double[] arrayToDoubleArray(java.lang.Object in, int inOffset, double[] out, int outOffset, int length, boolean signed)
in
- input arrayinOffset
- position where we start read data fromout
- output array which is used to receive result (and so define wanted type)outOffset
- position where we start to write data tolength
- number of value to convert (-1 means we will use the maximum possible length)signed
- assume input data as signed datapublic static double[] arrayToDoubleArray(java.lang.Object in, double[] out, boolean signed)
in
- input arrayout
- output array which is used to receive result (and so define wanted type)signed
- assume input data as signed datapublic static double[] arrayToDoubleArray(java.lang.Object in, boolean signed)
in
- input arraysigned
- assume input data as signed datapublic static float[] arrayToFloatArray(java.lang.Object in, int inOffset, float[] out, int outOffset, int length, boolean signed)
in
- input arrayinOffset
- position where we start read data fromout
- output array which is used to receive result (and so define wanted type)outOffset
- position where we start to write data tolength
- number of value to convert (-1 means we will use the maximum possible length)signed
- assume input data as signed datapublic static float[] arrayToFloatArray(java.lang.Object in, float[] out, boolean signed)
in
- input arrayout
- output array which is used to receive result (and so define wanted type)signed
- assume input data as signed datapublic static float[] arrayToFloatArray(java.lang.Object in, boolean signed)
in
- input arraysigned
- assume input data as signed datapublic static int[] arrayToIntArray(java.lang.Object in, int inOffset, int[] out, int outOffset, int length, boolean signed)
in
- input arrayinOffset
- position where we start read data fromout
- output array which is used to receive result (and so define wanted type)outOffset
- position where we start to write data tolength
- number of value to convert (-1 means we will use the maximum possible length)signed
- assume input data as signed datapublic static int[] arrayToIntArray(java.lang.Object in, int[] out, boolean signed)
in
- input arrayout
- output array which is used to receive result (and so define wanted type)signed
- assume input data as signed datapublic static int[] arrayToIntArray(java.lang.Object in, boolean signed)
in
- input arraysigned
- assume input data as signed datapublic static short[] arrayToShortArray(java.lang.Object in, int inOffset, short[] out, int outOffset, int length, boolean signed)
in
- input arrayinOffset
- position where we start read data fromout
- output array which is used to receive result (and so define wanted type)outOffset
- position where we start to write data tolength
- number of value to convert (-1 means we will use the maximum possible length)signed
- assume input data as signed datapublic static short[] arrayToShortArray(java.lang.Object in, short[] out, boolean signed)
in
- input arrayout
- output array which is used to receive result (and so define wanted type)signed
- assume input data as signed datapublic static short[] arrayToShortArray(java.lang.Object in, boolean signed)
in
- input arraysigned
- assume input data as signed datapublic static byte[] arrayToByteArray(java.lang.Object in, int inOffset, byte[] out, int outOffset, int length)
in
- input arrayinOffset
- position where we start read data fromout
- output array which is used to receive result (and so define wanted type)outOffset
- position where we start to write data tolength
- number of value to convert (-1 means we will use the maximum possible length)public static byte[] arrayToByteArray(java.lang.Object in, byte[] out)
in
- input arrayout
- output array which is used to receive result (and so define wanted type)public static byte[] arrayToByteArray(java.lang.Object in)
in
- input arraypublic static double[] doubleArrayToDoubleArray(double[] in, int inOffset, double[] out, int outOffset, int length)
public static float[] doubleArrayToFloatArray(double[] in, int inOffset, float[] out, int outOffset, int length)
public static long[] doubleArrayToLongArray(double[] in, int inOffset, long[] out, int outOffset, int length)
public static int[] doubleArrayToIntArray(double[] in, int inOffset, int[] out, int outOffset, int length)
public static short[] doubleArrayToShortArray(double[] in, int inOffset, short[] out, int outOffset, int length)
public static byte[] doubleArrayToByteArray(double[] in, int inOffset, byte[] out, int outOffset, int length)
public static double[] floatArrayToDoubleArray(float[] in, int inOffset, double[] out, int outOffset, int length)
public static float[] floatArrayToFloatArray(float[] in, int inOffset, float[] out, int outOffset, int length)
public static long[] floatArrayToLongArray(float[] in, int inOffset, long[] out, int outOffset, int length)
public static int[] floatArrayToIntArray(float[] in, int inOffset, int[] out, int outOffset, int length)
public static short[] floatArrayToShortArray(float[] in, int inOffset, short[] out, int outOffset, int length)
public static byte[] floatArrayToByteArray(float[] in, int inOffset, byte[] out, int outOffset, int length)
public static double[] longArrayToDoubleArray(long[] in, int inOffset, double[] out, int outOffset, int length, boolean signed)
public static float[] longArrayToFloatArray(long[] in, int inOffset, float[] out, int outOffset, int length, boolean signed)
public static long[] longArrayToLongArray(long[] in, int inOffset, long[] out, int outOffset, int length)
public static int[] longArrayToIntArray(long[] in, int inOffset, int[] out, int outOffset, int length)
public static short[] longArrayToShortArray(long[] in, int inOffset, short[] out, int outOffset, int length)
public static byte[] longArrayToByteArray(long[] in, int inOffset, byte[] out, int outOffset, int length)
public static double[] intArrayToDoubleArray(int[] in, int inOffset, double[] out, int outOffset, int length, boolean signed)
public static float[] intArrayToFloatArray(int[] in, int inOffset, float[] out, int outOffset, int length, boolean signed)
public static long[] intArrayToLongArray(int[] in, int inOffset, long[] out, int outOffset, int length, boolean signed)
public static int[] intArrayToIntArray(int[] in, int inOffset, int[] out, int outOffset, int length)
public static short[] intArrayToShortArray(int[] in, int inOffset, short[] out, int outOffset, int length)
public static byte[] intArrayToByteArray(int[] in, int inOffset, byte[] out, int outOffset, int length)
public static double[] shortArrayToDoubleArray(short[] in, int inOffset, double[] out, int outOffset, int length, boolean signed)
public static float[] shortArrayToFloatArray(short[] in, int inOffset, float[] out, int outOffset, int length, boolean signed)
public static long[] shortArrayToLongArray(short[] in, int inOffset, long[] out, int outOffset, int length, boolean signed)
public static int[] shortArrayToIntArray(short[] in, int inOffset, int[] out, int outOffset, int length, boolean signed)
public static short[] shortArrayToShortArray(short[] in, int inOffset, short[] out, int outOffset, int length)
public static byte[] shortArrayToByteArray(short[] in, int inOffset, byte[] out, int outOffset, int length)
public static double[] byteArrayToDoubleArray(byte[] in, int inOffset, double[] out, int outOffset, int length, boolean signed)
public static float[] byteArrayToFloatArray(byte[] in, int inOffset, float[] out, int outOffset, int length, boolean signed)
public static long[] byteArrayToLongArray(byte[] in, int inOffset, long[] out, int outOffset, int length, boolean signed)
public static int[] byteArrayToIntArray(byte[] in, int inOffset, int[] out, int outOffset, int length, boolean signed)
public static short[] byteArrayToShortArray(byte[] in, int inOffset, short[] out, int outOffset, int length, boolean signed)
public static byte[] byteArrayToByteArray(byte[] in, int inOffset, byte[] out, int outOffset, int length)
public static float[] doubleArrayToFloatArray(double[] array)
public static long[] doubleArrayToLongArray(double[] array)
public static int[] doubleArrayToIntArray(double[] array)
public static short[] doubleArrayToShortArray(double[] array)
public static byte[] doubleArrayToByteArray(double[] array)
public static double[] floatArrayToDoubleArray(float[] array)
public static long[] floatArrayToLongArray(float[] array)
public static int[] floatArrayToIntArray(float[] array)
public static short[] floatArrayToShortArray(float[] array)
public static byte[] floatArrayToByteArray(float[] array)
public static double[] longArrayToDoubleArray(long[] array, boolean signed)
public static float[] longArrayToFloatArray(long[] array, boolean signed)
public static short[] longArrayToShortArray(long[] array)
public static byte[] longArrayToByteArray(long[] array)
public static double[] intArrayToDoubleArray(int[] array, boolean signed)
public static float[] intArrayToFloatArray(int[] array, boolean signed)
public static long[] intArrayToLongArray(int[] array, boolean signed)
public static short[] intArrayToShortArray(int[] array)
public static byte[] intArrayToByteArray(int[] array)
public static double[] shortArrayToDoubleArray(short[] array, boolean signed)
public static float[] shortArrayToFloatArray(short[] array, boolean signed)
public static long[] shortArrayToLongArray(short[] array, boolean signed)
public static int[] shortArrayToIntArray(short[] array, boolean signed)
public static byte[] shortArrayToByteArray(short[] array)
public static double[] byteArrayToDoubleArray(byte[] array, boolean signed)
public static float[] byteArrayToFloatArray(byte[] array, boolean signed)
public static long[] byteArrayToLongArray(byte[] array, boolean signed)
public static int[] byteArrayToIntArray(byte[] array, boolean signed)
public static short[] byteArrayToShortArray(byte[] array, boolean signed)
public static java.lang.Object doubleArrayToSafeArray(double[] in, int inOffset, java.lang.Object out, int outOffset, int length, boolean signed)
public static java.lang.Object doubleArrayToSafeArray(double[] in, java.lang.Object out, boolean signed)
public static java.lang.Object floatArrayToSafeArray(float[] in, int inOffset, java.lang.Object out, int outOffset, int length, boolean signed)
public static java.lang.Object floatArrayToSafeArray(float[] in, java.lang.Object out, boolean signed)
public static java.lang.Object longArrayToSafeArray(long[] in, int inOffset, java.lang.Object out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
public static java.lang.Object longArrayToSafeArray(long[] in, java.lang.Object out, boolean srcSigned, boolean dstSigned)
@Deprecated public static java.lang.Object longArrayToSafeArray(long[] in, int inOffset, java.lang.Object out, int outOffset, int length, boolean signed)
longArrayToSafeArray(long[], int, Object, int, int, boolean, boolean)
instead.@Deprecated public static java.lang.Object longArrayToSafeArray(long[] in, java.lang.Object out, boolean signed)
longArrayToSafeArray(long[], Object, boolean, boolean)
instead.public static java.lang.Object intArrayToSafeArray(int[] in, int inOffset, java.lang.Object out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
public static java.lang.Object intArrayToSafeArray(int[] in, java.lang.Object out, boolean srcSigned, boolean dstSigned)
@Deprecated public static java.lang.Object intArrayToSafeArray(int[] in, int inOffset, java.lang.Object out, int outOffset, int length, boolean signed)
intArrayToSafeArray(int[], int, Object, int, int, boolean, boolean)
instead.@Deprecated public static java.lang.Object intArrayToSafeArray(int[] in, java.lang.Object out, boolean signed)
intArrayToSafeArray(int[], Object, boolean, boolean)
instead.public static java.lang.Object shortArrayToSafeArray(short[] in, int inOffset, java.lang.Object out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
public static java.lang.Object shortArrayToSafeArray(short[] in, java.lang.Object out, boolean srcSigned, boolean dstSigned)
@Deprecated public static java.lang.Object shortArrayToSafeArray(short[] in, int inOffset, java.lang.Object out, int outOffset, int length, boolean signed)
shortArrayToSafeArray(short[], int, Object, int, int, boolean, boolean)
instead.@Deprecated public static java.lang.Object shortArrayToSafeArray(short[] in, java.lang.Object out, boolean signed)
shortArrayToSafeArray(short[], Object, boolean, boolean)
instead.public static java.lang.Object byteArrayToSafeArray(byte[] in, int inOffset, java.lang.Object out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
public static java.lang.Object byteArrayToSafeArray(byte[] in, java.lang.Object out, boolean srcSigned, boolean dstSigned)
public static long[] arrayToSafeLongArray(java.lang.Object in, int inOffset, long[] out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
public static long[] arrayToSafeLongArray(java.lang.Object in, long[] out, boolean srcSigned, boolean dstSigned)
@Deprecated public static long[] arrayToSafeLongArray(java.lang.Object in, int inOffset, long[] out, int outOffset, int length, boolean signed)
arrayToSafeLongArray(Object, int, long[], int, int, boolean, boolean)
instead.@Deprecated public static long[] arrayToSafeLongArray(java.lang.Object in, long[] out, boolean signed)
arrayToSafeLongArray(Object, long[], boolean, boolean)
instead.public static int[] arrayToSafeIntArray(java.lang.Object in, int inOffset, int[] out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
public static int[] arrayToSafeIntArray(java.lang.Object in, int[] out, boolean srcSigned, boolean dstSigned)
@Deprecated public static int[] arrayToSafeIntArray(java.lang.Object in, int inOffset, int[] out, int outOffset, int length, boolean signed)
arrayToSafeIntArray(Object, int, int[], int, int, boolean, boolean)
instead.@Deprecated public static int[] arrayToSafeIntArray(java.lang.Object in, int[] out, boolean signed)
arrayToSafeIntArray(Object, int[], boolean, boolean)
instead.public static short[] arrayToSafeShortArray(java.lang.Object in, int inOffset, short[] out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
public static short[] arrayToSafeShortArray(java.lang.Object in, short[] out, boolean srcSigned, boolean dstSigned)
@Deprecated public static short[] arrayToSafeShortArray(java.lang.Object in, int inOffset, short[] out, int outOffset, int length, boolean signed)
arrayToSafeShortArray(Object, int, short[], int, int, boolean, boolean)
instead.@Deprecated public static short[] arrayToSafeShortArray(java.lang.Object in, short[] out, boolean signed)
arrayToSafeShortArray(Object, short[], boolean, boolean)
instead.public static byte[] arrayToSafeByteArray(java.lang.Object in, int inOffset, byte[] out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
public static byte[] arrayToSafeByteArray(java.lang.Object in, byte[] out, boolean srcSigned, boolean dstSigned)
@Deprecated public static byte[] arrayToSafeByteArray(java.lang.Object in, int inOffset, byte[] out, int outOffset, int length, boolean signed)
arrayToSafeByteArray(Object, int, byte[], int, int, boolean, boolean)
instead.@Deprecated public static byte[] arrayToSafeByteArray(java.lang.Object in, byte[] out, boolean signed)
arrayToSafeByteArray(Object, byte[], boolean, boolean)
instead.public static long[] doubleArrayToSafeLongArray(double[] in, int inOffset, long[] out, int outOffset, int length, boolean signed)
public static int[] doubleArrayToSafeIntArray(double[] in, int inOffset, int[] out, int outOffset, int length, boolean signed)
public static short[] doubleArrayToSafeShortArray(double[] in, int inOffset, short[] out, int outOffset, int length, boolean signed)
public static byte[] doubleArrayToSafeByteArray(double[] in, int inOffset, byte[] out, int outOffset, int length, boolean signed)
public static long[] floatArrayToSafeLongArray(float[] in, int inOffset, long[] out, int outOffset, int length, boolean signed)
public static int[] floatArrayToSafeIntArray(float[] in, int inOffset, int[] out, int outOffset, int length, boolean signed)
public static short[] floatArrayToSafeShortArray(float[] in, int inOffset, short[] out, int outOffset, int length, boolean signed)
public static byte[] floatArrayToSafeByteArray(float[] in, int inOffset, byte[] out, int outOffset, int length, boolean signed)
public static long[] longArrayToSafeLongArray(long[] in, int inOffset, long[] out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
public static int[] longArrayToSafeIntArray(long[] in, int inOffset, int[] out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
public static short[] longArrayToSafeShortArray(long[] in, int inOffset, short[] out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
public static byte[] longArrayToSafeByteArray(long[] in, int inOffset, byte[] out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
@Deprecated public static int[] longArrayToSafeIntArray(long[] in, int inOffset, int[] out, int outOffset, int length, boolean signed)
longArrayToSafeIntArray(long[], int, int[], int, int, boolean, boolean)
instead.@Deprecated public static short[] longArrayToSafeShortArray(long[] in, int inOffset, short[] out, int outOffset, int length, boolean signed)
longArrayToSafeShortArray(long[], int, short[], int, int, boolean, boolean)
instead.@Deprecated public static byte[] longArrayToSafeByteArray(long[] in, int inOffset, byte[] out, int outOffset, int length, boolean signed)
longArrayToSafeByteArray(long[], int, byte[], int, int, boolean, boolean)
instead.public static int[] intArrayToSafeIntArray(int[] in, int inOffset, int[] out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
public static short[] intArrayToSafeShortArray(int[] in, int inOffset, short[] out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
public static byte[] intArrayToSafeByteArray(int[] in, int inOffset, byte[] out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
@Deprecated public static short[] intArrayToSafeShortArray(int[] in, int inOffset, short[] out, int outOffset, int length, boolean signed)
intArrayToSafeShortArray(int[], int, short[], int, int, boolean, boolean)
instead.@Deprecated public static byte[] intArrayToSafeByteArray(int[] in, int inOffset, byte[] out, int outOffset, int length, boolean signed)
intArrayToSafeByteArray(int[], int, byte[], int, int, boolean, boolean)
instead.public static short[] shortArrayToSafeShortArray(short[] in, int inOffset, short[] out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
public static byte[] shortArrayToSafeByteArray(short[] in, int inOffset, byte[] out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
@Deprecated public static byte[] shortArrayToSafeByteArray(short[] in, int inOffset, byte[] out, int outOffset, int length, boolean signed)
shortArrayToSafeByteArray(short[], int, byte[], int, int, boolean, boolean)
instead.public static byte[] byteArrayToSafeByteArray(byte[] in, int inOffset, byte[] out, int outOffset, int length, boolean srcSigned, boolean dstSigned)
public static long[] doubleArrayToSafeLongArray(double[] array, boolean signed)
public static int[] doubleArrayToSafeIntArray(double[] array, boolean signed)
public static short[] doubleArrayToSafeShortArray(double[] array, boolean signed)
public static byte[] doubleArrayToSafeByteArray(double[] array, boolean signed)
public static long[] floatArrayToSafeLongArray(float[] array, boolean signed)
public static int[] floatArrayToSafeIntArray(float[] array, boolean signed)
public static short[] floatArrayToSafeShortArray(float[] array, boolean signed)
public static byte[] floatArrayToSafeByteArray(float[] array, boolean signed)
public static int[] longArrayToSafeIntArray(long[] array, boolean signed)
public static short[] longArrayToSafeShortArray(long[] array, boolean signed)
public static byte[] longArrayToSafeByteArray(long[] array, boolean signed)
public static short[] intArrayToSafeShortArray(int[] array, boolean signed)
public static byte[] intArrayToSafeByteArray(int[] array, boolean signed)
public static byte[] shortArrayToSafeByteArray(short[] array, boolean signed)
public static java.lang.String arrayToString(java.lang.Object array)
array
- 1D array containing values to return as stringpublic static java.lang.String arrayToString(java.lang.Object array, boolean signed, boolean hexa, java.lang.String separator, int size)
array
- 1D array containing values to return as stringsigned
- input value are signed (only for integer data type)hexa
- set value in resulting string in hexa decimal format (only for integer data type)separator
- specify the separator to use between each array value in resulting stringsize
- specify the number of significant number to display for float value (-1 means all)public static java.lang.Object stringToArray(java.lang.String value, DataType dataType)
value
- string containing value to return as 1D arraydataType
- specify the values data type and also the output array data type string@Deprecated public static java.lang.Object stringToArray(java.lang.String value, int dataType)
stringToArray(String, DataType)
insteadpublic static java.lang.Object stringToArray(java.lang.String value, DataType dataType, boolean hexa, java.lang.String separator)
value
- string containing value to return as 1D arraydataType
- specify the values data type and also the output array data type stringhexa
- values in string as stored as hexa values (only for integer data type)separator
- specify the separator used between each value in the input string@Deprecated public static java.lang.Object stringToArray(java.lang.String value, int dataType, boolean hexa, java.lang.String separator)
stringToArray(String, DataType, boolean, String)
insteadpublic static byte[] toByteArray(boolean[] array)
public static byte[] toByteArray(boolean[] in, byte[] out, int offset)
public static boolean[] toBooleanArray(byte[] array)
public static boolean[] toBooleanArray(byte[] in, boolean[] out, int offset)
public static byte[] getInterleavedData(byte[] in, int inOffset, int step, byte[] out, int outOffset, int size)
in
- input byte array containing interleaved datainOffset
- input array offsetstep
- interleave stepout
- output result array. If set to null
then a new array is allocated.outOffset
- output array offsetsize
- number of byte to retrievepublic static byte[] deInterleave(byte[] in, int inOffset, int step, byte[] out, int outOffset, int size)
in
- input byte array containing interleaved datainOffset
- input array offsetstep
- interleave stepout
- output result array. If set to null
then a new array is allocatedoutOffset
- output array offsetsize
- number of element to de-interleave