public abstract class ResourceDataTypes
extends java.lang.Object
Constructor and Description |
---|
ResourceDataTypes() |
Modifier and Type | Method and Description |
---|---|
abstract byte[] |
getResourceByteArray(int res_id) |
char[] |
getResourceCharArray(int res_id)
Same as getResourceByteArray, but returns a char-array
|
double[] |
getResourceDoubleArray(int res_id)
Same as getResourceByteArray, but returns a double-array
|
float[] |
getResourceFloatArray(int res_id)
Same as getResourceByteArray, but returns an float-array
|
int[] |
getResourceIntArray(int res_id)
Same as getResourceByteArray, but returns an int-array
|
long[] |
getResourceLongArray(int res_id)
Same as getResourceByteArray, but returns a long-array
|
short[] |
getResourceShortArray(int res_id)
Same as getResourceByteArray, but returns a short-array
|
static int |
readIntFromByteArray(byte[] array,
int index)
Loads an int from the four bytes {index -> index + 3} in the array
|
static long |
readLongFromByteArray(byte[] array,
int index)
Loads a long from the eight bytes {index -> index + 7} in the array
|
static short |
readShortFromByteArray(byte[] array,
int index)
Loads a short from the two bytes {index -> index + 1} in the array
|
static int |
writeIntToByteArray(byte[] array,
int index,
int value)
Writes an int to the four bytes {index -> index + 3} in the array.
|
public abstract byte[] getResourceByteArray(int res_id)
public static short readShortFromByteArray(byte[] array, int index)
public static int readIntFromByteArray(byte[] array, int index)
public static long readLongFromByteArray(byte[] array, int index)
public static int writeIntToByteArray(byte[] array, int index, int value)
public char[] getResourceCharArray(int res_id)
public short[] getResourceShortArray(int res_id)
public int[] getResourceIntArray(int res_id)
public long[] getResourceLongArray(int res_id)
public float[] getResourceFloatArray(int res_id)
public double[] getResourceDoubleArray(int res_id)