Skip to content

Commit

Permalink
Fix Issue:fix an isusse
Browse files Browse the repository at this point in the history
  • Loading branch information
panhongwei committed Sep 26, 2017
1 parent 8920ab0 commit 0d2aec9
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
Binary file modified TraceReader/.DS_Store
Binary file not shown.
Binary file modified TraceReader/Tracer.jar
Binary file not shown.
Binary file modified TraceReader/src/.DS_Store
Binary file not shown.
Binary file modified TraceReader/src/com/.DS_Store
Binary file not shown.
Binary file modified TraceReader/src/com/panda/.DS_Store
Binary file not shown.
Binary file modified TraceReader/src/com/panda/trace/.DS_Store
Binary file not shown.
26 changes: 13 additions & 13 deletions TraceReader/src/com/panda/trace/BytesHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,23 @@ public static byte[] toByteArray(String filename) throws IOException {
//ptr[2] | (ptr[3] << 8) | (ptr[4] << 16) | (ptr[5] << 24);
public static int read2LE(byte[] data,int offset){
return (int)((data[offset]&0xff)|
((data[offset+1]&0xff)<<8));
((data[offset+1]&0xff)<<8))&0xffff;
}
public static long read4LE(byte[] data,int offset){
return (long)((data[offset]&0xff)|
((data[offset+1]&0xff)<<8)|
((data[offset+2]&0xff)<<16)|
((data[offset+3]&0xff)<<24));
return ((long)((data[offset]&0xff)|
((data[offset+1]&0xff)<<8)|
((data[offset+2]&0xff)<<16)|
((data[offset+3]&0xff)<<24)))&0xffffffffl;
}
public static long read8LE(byte[] data,int offset){
return (long)((data[offset]&0xff)|
((data[offset+1]&0xff)<<8)|
((data[offset+2]&0xff)<<16)|
((data[offset+3]&0xff)<<24)|
((data[offset+4]&0xff)<<32)|
((data[offset+5]&0xff)<<40)|
((data[offset+6]&0xff)<<48)|
((data[offset+7]&0xff)<<56));
return ((long)(data[offset]&0xff)|
((data[offset+1]&0xff)<<8)|
((data[offset+2]&0xff)<<16)|
((data[offset+3]&0xff)<<24)|
((data[offset+4]&0xff)<<32)|
((data[offset+5]&0xff)<<40)|
((data[offset+6]&0xff)<<48)|
((data[offset+7]&0xff)<<56))&0xffffffffffffffffl;
}

}
Binary file added TraceReader/src/com/panda/ui/.DS_Store
Binary file not shown.

0 comments on commit 0d2aec9

Please sign in to comment.