|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.sdsc.grid.io.Host
public final class Host
All methods and fields of this class are static. Object instances of this class cannot be created.
Attributes
Byte order
For all data types requiring more than one byte (i.e., sizeof(type)>1), the processor stores the value as a sequence of bytes. That sequence may place the highest-order bytes first or last:
- Big endian = Most-significant Byte First = MBF
- Little endian = Least-significant Byte First = LBF
Intel processors are LBF, while most other processors are MBF. Java is always MBF, regardless of processor.
Data type storage sizes
Java defines fixed values, independent of processor, for the storage size of each primitive type.Data type significant bits
The significant bits of a data type are the bits that may be set when using a value of that type. In Java this is the same number of bits as used to store that type.Data type storage alignment
Storage alignment forces data types to start on half-word, word, or double-word address boundaries (depending on the type). This data cannot be determined, or used, in Java applications.
methods
Cast methods
Methods named "castToType" where "Type" is "Short," "Int", etc., provide a smart method of casting bytes from a raw byte array into a data type's value. For instance, if an array "bytes" contains a 4-byte float, then use:float value = Host.castToFloat( bytes );Copy methods
Methods named "copyType" where "Type" is "Short," "Int," etc., provide a smart method of copying a data typed value into a raw byte array. For instance, if a 4-byte float value needs to be copied into the next 4 bytes in a "bytes" array, then use:Host.copyFloat( value, bytes );
| Field Summary | |
|---|---|
static int |
CHAR
A language primitive signed or unsigned char. |
static int |
DOUBLE
A language primitive double. |
static int |
FLOAT
A language primitive float. |
static int |
INT
A language primitive signed or unsigned integer. |
static int |
LONG
A language primitive signed or unsigned long integer. |
static int |
LONGDOUBLE
A language primitive long double. |
static int |
LONGLONG
A language primitive signed or unsigned long long integer. |
static int |
MAX_TYPE_SIZE
The guaranteed maximum number of bytes ever needed to hold the largest data type. |
static int |
NUMBER_TYPES
The number of language primitive types. |
static int |
SHORT
A language primitive signed or unsigned short integer. |
| Constructor Summary | |
|---|---|
Host()
|
|
| Method Summary | |
|---|---|
static short |
castToByte(byte[] bytes)
Casts bytes from the given byte array into a value of the type and returns it. |
static short |
castToByte(byte[] bytes,
int offset)
Casts bytes from the given byte array into a value of the type and returns it. |
static double |
castToDouble(byte[] bytes)
Casts bytes from the given byte array into a value of the type and returns it. |
static double |
castToDouble(byte[] bytes,
int offset)
Casts bytes from the given byte array into a value of the type and returns it. |
static float |
castToFloat(byte[] bytes)
Casts bytes from the given byte array into a value of the type and returns it. |
static float |
castToFloat(byte[] bytes,
int offset)
Casts bytes from the given byte array into a value of the type and returns it. |
static int |
castToInt(byte[] bytes)
Casts bytes from the given byte array into a value of the type and returns it. |
static int |
castToInt(byte[] bytes,
int offset)
Casts bytes from the given byte array into a value of the type and returns it. |
static long |
castToLong(byte[] bytes)
Casts bytes from the given byte array into a value of the type and returns it. |
static long |
castToLong(byte[] bytes,
int offset)
Casts bytes from the given byte array into a value of the type and returns it. |
static double |
castToLongDouble(byte[] bytes)
Casts bytes from the given byte array into a value of the type and returns it. |
static double |
castToLongDouble(byte[] bytes,
int offset)
Casts bytes from the given byte array into a value of the type and returns it. |
static long |
castToLongLong(byte[] bytes)
Casts bytes from the given byte array into a value of the type and returns it. |
static long |
castToLongLong(byte[] bytes,
int offset)
Casts bytes from the given byte array into a value of the type and returns it. |
static short |
castToShort(byte[] bytes)
Casts bytes from the given byte array into a value of the type and returns it. |
static short |
castToShort(byte[] bytes,
int offset)
Casts bytes from the given byte array into a value of the type and returns it. |
static long |
castToUnsignedInt(byte[] bytes)
Casts bytes from the given byte array into a value of the type and returns it. |
static long |
castToUnsignedInt(byte[] bytes,
int offset)
Casts bytes from the given byte array into a value of the type and returns it. |
static long |
castToUnsignedLong(byte[] bytes)
Casts bytes from the given byte array into a value of the type and returns it. |
static long |
castToUnsignedLong(byte[] bytes,
int offset)
Casts bytes from the given byte array into a value of the type and returns it. |
static long |
castToUnsignedLongLong(byte[] bytes)
Casts bytes from the given byte array into a value of the type and returns it. |
static long |
castToUnsignedLongLong(byte[] bytes,
int offset)
Casts bytes from the given byte array into a value of the type and returns it. |
static int |
castToUnsignedShort(byte[] bytes)
Casts bytes from the given byte array into a value of the type and returns it. |
static int |
castToUnsignedShort(byte[] bytes,
int offset)
Casts bytes from the given byte array into a value of the type and returns it. |
static void |
copyDouble(double value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyDouble(double value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyFloat(double value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyFloat(double value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyFloat(float value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyFloat(float value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyInt(byte value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyInt(byte value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyInt(int value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyInt(int value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyInt(long value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyInt(long value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyInt(short value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyInt(short value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyLong(byte value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyLong(byte value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyLong(int value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyLong(int value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyLong(long value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyLong(long value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyLong(short value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyLong(short value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyLongDouble(double value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyLongDouble(double value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyLongLong(byte value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyLongLong(byte value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyLongLong(int value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyLongLong(int value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyLongLong(long value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyLongLong(long value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyLongLong(short value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyLongLong(short value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyShort(byte value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyShort(byte value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyShort(int value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyShort(int value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyShort(long value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyShort(long value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyShort(short value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyShort(short value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedInt(byte value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedInt(byte value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedInt(int value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedInt(int value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedInt(long value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedInt(long value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedInt(short value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedInt(short value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLong(byte value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLong(byte value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLong(int value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLong(int value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLong(long value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLong(long value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLong(short value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLong(short value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLongLong(byte value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLongLong(byte value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLongLong(int value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLongLong(int value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLongLong(long value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLongLong(long value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLongLong(short value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedLongLong(short value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedShort(byte value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedShort(byte value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedShort(int value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedShort(int value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedShort(long value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedShort(long value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedShort(short value,
byte[] bytes)
Copies the given value of the type into the given byte array. |
static void |
copyUnsignedShort(short value,
byte[] bytes,
int offset)
Copies the given value of the type into the given byte array. |
static int |
getCompilerAlignment(int type)
Gets the alignment boundary, in bytes, imposed by the compiler for the type. |
static java.lang.String |
getName(int type)
Gets the name of the type. |
static int |
getSignificantBits(int type)
Gets the number of significant bits of the type. |
static byte |
getStorageSize(int type)
Gets the number of bytes occupied by the type. |
static boolean |
isLBFByteOrder()
Returns true if the host's byte order is "little endian" or Least-significant-Byte-First (LBF); otherwise false. |
static boolean |
isMBFByteOrder()
Returns true if the host's byte order is "big endian" or Most-significant-Byte-First (MBF); otherwise false. |
static void |
print()
Prints to System.out the attributes of the current host. |
static void |
swap(byte[] bytes,
int nBytes)
Reverses the byte order of the first nBytes of the byte array. |
static void |
swap(byte[] bytes,
int offset,
int nBytes)
Reverses the byte order of nBytes of the byte array, starting at the given offset. |
static void |
swapMultiple(byte[] bytes,
int nBytes,
int nTimes)
Reverses the byte order of nBytes of the byte array, doing it nTimes in a row for consecutive runs of nBytes. |
static void |
swapMultiple(byte[] bytes,
int offset,
int nBytes,
int nTimes)
Reverses the byte order of nBytes of the byte array, starting at the given offset, and doing it nTimes in a row for consecutive runs of nBytes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CHAR
public static final int SHORT
public static final int INT
public static final int LONG
public static final int LONGLONG
public static final int FLOAT
public static final int DOUBLE
public static final int LONGDOUBLE
public static final int NUMBER_TYPES
public static final int MAX_TYPE_SIZE
The maximum value is intentionally set large in order to accomodate current and future architectures.
| Constructor Detail |
|---|
public Host()
| Method Detail |
|---|
public static final boolean isMBFByteOrder()
public static final boolean isLBFByteOrder()
public static final java.lang.String getName(int type)
type - the type code for the data type
public static final byte getStorageSize(int type)
type - the type code for the data type
public static final int getSignificantBits(int type)
type - the type code for the data type
public static final int getCompilerAlignment(int type)
type - the type code for the data type
public static final void swap(byte[] bytes,
int nBytes)
The swap is done in-place, reversing the order of bytes in the given array.
bytes - an array of bytes to swap the order ofnBytes - the number of bytes to swap
public static final void swap(byte[] bytes,
int offset,
int nBytes)
The swap is done in-place, reversing the order of bytes in the given array.
bytes - an array of bytes to swap the order ofoffset - the starting point in the bytes arraynBytes - the number of bytes to swap
public static final void swapMultiple(byte[] bytes,
int nBytes,
int nTimes)
The swap is done in-place, reversing the order of bytes in the given array.
bytes - an array of bytes to swap the order ofnBytes - the number of bytes to swapnTimes - the number of times to do consecutive swaps
public static final void swapMultiple(byte[] bytes,
int offset,
int nBytes,
int nTimes)
The swap is done in-place, reversing the order of bytes in the given array.
bytes - an array of bytes to swap the order ofoffset - starting point in the arraynBytes - the number of bytes to swapnTimes - the number of times to do consecutive swapspublic static final short castToByte(byte[] bytes)
Because Java doesn't support unsigned primitive types, this method returns the value in the next larger data type, with the high bits set to zeroes.
bytes - byte array
public static final short castToShort(byte[] bytes)
bytes - byte array
public static final int castToUnsignedShort(byte[] bytes)
Because Java doesn't support unsigned primitive types, this method returns the value in the next larger data type, with the high bits set to zeroes.
bytes - byte array
public static final int castToInt(byte[] bytes)
bytes - byte array
public static final long castToUnsignedInt(byte[] bytes)
Because Java doesn't support unsigned primitive types, this method returns the value in the next larger data type, with the high bits set to zeroes.
bytes - byte array
public static final long castToLong(byte[] bytes)
bytes - byte array
public static final long castToUnsignedLong(byte[] bytes)
bytes - byte array
public static final long castToLongLong(byte[] bytes)
Note: Since Java does not support long long types, this method is identical to the long version.
bytes - byte array
public static final long castToUnsignedLongLong(byte[] bytes)
Note: Since Java does not support long long types, this method is identical to the long version.
bytes - byte array
public static final float castToFloat(byte[] bytes)
bytes - byte array
public static final double castToDouble(byte[] bytes)
bytes - byte array
public static final double castToLongDouble(byte[] bytes)
Note: Since Java does not support long double types, this method is identical to the double version.
bytes - byte array
public static final short castToByte(byte[] bytes,
int offset)
Because Java doesn't support unsigned primitive types, this method returns the value in the next larger data type, with the high bits set to zeroes.
bytes - byte arrayoffset - starting point in byte array
public static final short castToShort(byte[] bytes,
int offset)
bytes - byte arrayoffset - starting point in byte array
public static final int castToUnsignedShort(byte[] bytes,
int offset)
Because Java doesn't support unsigned primitive types, this method returns the value in the next larger data type, with the high bits set to zeroes.
bytes - byte arrayoffset - starting point in byte array
public static final int castToInt(byte[] bytes,
int offset)
bytes - byte arrayoffset - starting point in byte array
public static final long castToUnsignedInt(byte[] bytes,
int offset)
Because Java doesn't support unsigned primitive types, this method returns the value in the next larger data type, with the high bits set to zeroes.
bytes - byte arrayoffset - starting point in byte array
public static final long castToLong(byte[] bytes,
int offset)
bytes - byte arrayoffset - starting point in byte array
public static final long castToUnsignedLong(byte[] bytes,
int offset)
bytes - byte arrayoffset - starting point in byte array
public static final long castToLongLong(byte[] bytes,
int offset)
Note: Since Java does not support long long types, this method is identical to the long version.
bytes - byte arrayoffset - starting point in byte array
public static final long castToUnsignedLongLong(byte[] bytes,
int offset)
Note: Since Java does not support long long types, this method is identical to the long version.
bytes - byte arrayoffset - starting point in byte array
public static final float castToFloat(byte[] bytes,
int offset)
bytes - byte arrayoffset - starting point in byte array
public static final double castToDouble(byte[] bytes,
int offset)
bytes - byte arrayoffset - starting point in byte array
public static final double castToLongDouble(byte[] bytes,
int offset)
Note: Since Java does not support long double types, this method is identical to the double version.
bytes - byte arrayoffset - starting point in byte array
public static final void copyShort(byte value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyShort(short value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyShort(int value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyShort(long value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedShort(byte value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedShort(short value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedShort(int value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedShort(long value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyInt(byte value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyInt(short value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyInt(int value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyInt(long value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedInt(byte value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedInt(short value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedInt(int value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedInt(long value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyLong(byte value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyLong(short value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyLong(int value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyLong(long value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedLong(byte value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedLong(short value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedLong(int value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedLong(long value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyLongLong(byte value,
byte[] bytes)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive value
public static final void copyLongLong(short value,
byte[] bytes)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive value
public static final void copyLongLong(int value,
byte[] bytes)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive value
public static final void copyLongLong(long value,
byte[] bytes)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedLongLong(byte value,
byte[] bytes)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedLongLong(short value,
byte[] bytes)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedLongLong(int value,
byte[] bytes)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive value
public static final void copyUnsignedLongLong(long value,
byte[] bytes)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive value
public static final void copyFloat(float value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyFloat(double value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyDouble(double value,
byte[] bytes)
value - the value to copybytes - byte array to receive value
public static final void copyLongDouble(double value,
byte[] bytes)
Note: Since Java does not support long double types, this method is identical to the double version.
value - the value to copybytes - byte array to receive value
public static final void copyShort(byte value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyShort(short value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyShort(int value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyShort(long value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedShort(byte value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedShort(short value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedShort(int value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedShort(long value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyInt(byte value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyInt(short value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyInt(int value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyInt(long value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedInt(byte value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedInt(short value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedInt(int value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedInt(long value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyLong(byte value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyLong(short value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyLong(int value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyLong(long value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedLong(byte value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedLong(short value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedLong(int value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedLong(long value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyLongLong(byte value,
byte[] bytes,
int offset)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyLongLong(short value,
byte[] bytes,
int offset)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyLongLong(int value,
byte[] bytes,
int offset)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyLongLong(long value,
byte[] bytes,
int offset)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedLongLong(byte value,
byte[] bytes,
int offset)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedLongLong(short value,
byte[] bytes,
int offset)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedLongLong(int value,
byte[] bytes,
int offset)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyUnsignedLongLong(long value,
byte[] bytes,
int offset)
Note: Since Java does not support long long types, this method is identical to the long version.
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyFloat(float value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyFloat(double value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyDouble(double value,
byte[] bytes,
int offset)
value - the value to copybytes - byte array to receive valueoffset - starting point in array
public static final void copyLongDouble(double value,
byte[] bytes,
int offset)
Note: Since Java does not support long double types, this method is identical to the double version.
value - the value to copybytes - byte array to receive valueoffset - starting point in arraypublic static final void print()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||