Joe Pham
2005-05-19 04:31:57 UTC
I just committed some improvements to the Hex Viewer hoping that it would become more useful as part of decyphering various phone files. This version displays various info like current offset into the file, the start/end and length of a selection (very useful in trying to determine a record of an item), various number representations of a block of bytes (signed/unsigned char, little/big endian signed/unsigned short/int), and the ability to import a Python module and apply a Python function over the data (which I find to be the most helpful, personally). A function needs to have the following prototype to be used with this Hex Viewer:
def f(parent, data, offset):
....
return result
where parent: the parent widget; data: the whole data string, and offset: current offset where the cursor is. This function should return a list of dict containing the labels and their value strings to be displayed ie [{'label1': 'value1'} , { 'label2': 'value2'}, ... ]
My next feature is to allow users to create data structures on the fly and apply&test them over the actual data. This would be very helpful in trying to figure out various components within a record of an item.
As always, comments and suggestions are welcome.
-Joe Pham
______________________________________________________________________
Get NetZero Platinum for as low as $4.97/month!
Unlimited Internet Access with 250MB of Email Storage.
Visit http://www.netzero.com/half to sign up today!
def f(parent, data, offset):
....
return result
where parent: the parent widget; data: the whole data string, and offset: current offset where the cursor is. This function should return a list of dict containing the labels and their value strings to be displayed ie [{'label1': 'value1'} , { 'label2': 'value2'}, ... ]
My next feature is to allow users to create data structures on the fly and apply&test them over the actual data. This would be very helpful in trying to figure out various components within a record of an item.
As always, comments and suggestions are welcome.
-Joe Pham
______________________________________________________________________
Get NetZero Platinum for as low as $4.97/month!
Unlimited Internet Access with 250MB of Email Storage.
Visit http://www.netzero.com/half to sign up today!