|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectds.ov2.util.Misc_host
public class Misc_host
Miscellaneous methods needed only in host driver code.
| Constructor Summary | |
|---|---|
protected |
Misc_host()
Static class, object creation disabled. |
| Method Summary | |
|---|---|
static byte[] |
byte_array_from_long(long l)
Convert a long into a big-endian byte array. |
static void |
gc_sleep(int m)
Collect garbage and sleep. |
static long |
long_from_byte_array(byte[] buf)
Convert a big-endian byte array into a long value. |
static void |
sleep(int m)
Sleep for m milliseconds. |
static String |
to_byte_hex_string(byte[] data)
Converts a byte array into a hex string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Misc_host()
| Method Detail |
|---|
public static byte[] byte_array_from_long(long l)
l - long to convert
l in big-endian formatpublic static long long_from_byte_array(byte[] buf)
buf - big-endian byte array
IlleagalArgumentException - if the length of buf is
different from 8public static String to_byte_hex_string(byte[] data)
data - array to convert
public static void sleep(int m)
m milliseconds. Does not throw InterruptedException in contrast to Thread.sleep.
m - milliseconds to sleeppublic static void gc_sleep(int m)
m is 0.
m - milliseconds to sleep
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||