in reply to Re^14: pack/unpack binary editing
in thread pack/unpack binary editing

If you are only discarding from the first (double) record, then if the original file is sync'd, the resultant file will be:

Read |------------|------------|------------|------------|---| --------------------------------------------------------- ....|s 7680 bits |s 7680 bits |s 7680 bits |s 7680 bits | --------------------------------------------------------- write <<<<|s-------|----s-------|----s-------|----s-------|---| |s-------|----s-------|----s-------|----s-------|---| ----------------------------------------------------- |s 7680 bits |s 7680 bits |s 7680 bits |s 7680 bits | -----------------------------------------------------

Anyway, good luck.


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.

Replies are listed 'Best First'.
Re^16: pack/unpack binary editing
by tperdue (Sexton) on Feb 11, 2005 at 12:27 UTC
    Thanks for your help. I think I may open the first frame and prepend 0's until the sync is on a byte boundary and then work with everything as hex. Thanks again.