i'm trying parse dump of hex data. have document labels out bit offsets, given 8 byte blocks of data. what's best way say, ok, want read in first 8 byte block, parse bits out , skip on next 16 8-byte blocks , read in , parse next block. etc. here example of dump
0x0000000100000000 0x0000000000000001 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0301000009798086 0x0000100100028888 0x0000000000000100 0x0000000000000000 0x020180860002f780 0x616c756d69530003 0x2050585320646574 0x000700004d4d4944 0x0000000000000003 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0xffffffff00000000
is involves converting hex binary , iterating on bits?
so far can read in file , split hex blocks own index.
data_test = "".join(["{0:04b}".format(int(c,16)) c in str(data_test)]) allowed me convert 8 byte block of hex information 64 bit string representation of data. how iterate through bits , efficient way of doing so?
Comments
Post a Comment