Maybe I don't understand this, but wouldn't it be easier to just to create a format and unpack() the whole binary struct ? Especially if you want to repack it and update the DB.
I got about 1/3 of the way through creating the format before I got bored and moved on to something more interesting.
|