|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.dalsemi.jellybeans.Debug
This class encapsulates a small collection of hopefully useful debug utilities. All methods are static to keep performance up and memory usage down. We don't want these things to get in the way of the application we're trying to debug.
| Field Summary | |
static boolean |
defaultStreams
|
| Method Summary | |
static boolean |
arrayComp(byte[] str1,
int offset1,
byte[] str2,
int offset2,
int length)
Quick function to compare two byte arrays. |
static boolean |
arrayComp(char[] str1,
int offset1,
char[] str2,
int offset2,
int length)
Deprecated. |
static void |
arrayCopyByteChar(byte[] str1,
int offset1,
char[] str2,
int offset2,
int length)
Copy each element in a byte array to LSB of each element character array. |
static void |
arrayCopyCharByte(char[] str1,
int offset1,
byte[] str2,
int offset2,
int length)
Copy LSB of each element in character array to a byte array. |
static void |
debugDump(byte[] arr,
int length)
Dump an array to info port. |
static void |
debugDump(int b)
Dump a byte to info port. |
static void |
debugDump(java.lang.String out)
Dump a string to info port. |
static void |
hexDump(byte[] b)
Dump hex representation of a byte array to System.out. |
static void |
hexDump(byte[] b,
int length)
Dump hex representation of a byte array to System.out. |
static void |
hexDump(int i)
Dump hex representation of a four byte int to System.out. |
static void |
intDump(int iVal)
Dump hex representation of a four byte int to System.out. |
static void |
resetDefaultStreams(boolean closeIn,
boolean closeOut,
boolean closeErr)
Sets System.out, System.err, and System.in to Null Streams. |
static void |
setDefaultStreams()
Sets the old TINI default streams to Serial port 0. |
static void |
setNativeVerboseDebugSpew(boolean verbose)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static boolean defaultStreams
| Method Detail |
public static void hexDump(int i)
i - integer to dumppublic static void hexDump(byte[] b)
b - byte array to dump
public static void hexDump(byte[] b,
int length)
b - byte array to dumplength - length of arraypublic static void debugDump(java.lang.String out)
out - String to dump.
public static void debugDump(byte[] arr,
int length)
arr - Array to dumplength - Length of arraypublic static void debugDump(int b)
b - public static void intDump(int iVal)
iVal - integer to dumphexDump(int i)
public static void arrayCopyCharByte(char[] str1,
int offset1,
byte[] str2,
int offset2,
int length)
str1 - offset1 - str2 - offset2 - length -
public static void arrayCopyByteChar(byte[] str1,
int offset1,
char[] str2,
int offset2,
int length)
str1 - offset1 - str2 - offset2 - length -
public static boolean arrayComp(byte[] str1,
int offset1,
byte[] str2,
int offset2,
int length)
str1 - first arrayoffset1 - first array starting offsetstr2 - second arrayoffset2 - second array starting offsetlength - number of bytes to compare
public static boolean arrayComp(char[] str1,
int offset1,
char[] str2,
int offset2,
int length)
str1 - first arrayoffset1 - first array starting offsetstr2 - second arrayoffset2 - second array starting offsetlength - number of bytes to comparepublic static void setDefaultStreams()
public static void resetDefaultStreams(boolean closeIn,
boolean closeOut,
boolean closeErr)
public static void setNativeVerboseDebugSpew(boolean verbose)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||