I am in need of editing binary files and looking for certain binary patterns without having to worry about byte boundaries. Once I find the patterns I need to take the following 10 bytes and write out the hex value for each nibble. I also need to keep track of the number of bits between each pattern. I will only be searching the file for one pattern at a time. I know this is alot but I think
Bit::Vector may do the trick. Any suggestions?
To answer graff's question, yes I would have to "re-align" the nibble/byte boundary relative to the start of the matched pattern. The pattern size will vary. One of the patterns I'm interested in is 16 bits long.