|
|||||||||
| 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.
| 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)
|
static void |
arrayCopyCharByte(char[] str1,
int offset1,
byte[] str2,
int offset2,
int length)
|
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 |
setDefaultStreams()
Sets the old TINI default streams to Serial port 0. |
| Methods inherited from class java.lang.Object |
equals,
hashCode,
toString |
| 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)
public static void arrayCopyByteChar(byte[] str1,
int offset1,
char[] str2,
int offset2,
int 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||