How does quickbms re-pack work?
Posted: Sat Aug 18, 2012 4:39 am
Been wondering for awhile now: why does the size of the modified file have to be no greater than the original?
I mean, when you consider a fairly simplistic archive format (which is not too uncommon I think.)
it doesn't seem too difficult to figure out how to pack a set of files given the structure of the archive, even if you have completely new files.
If I had some archive format like the above, would I be able to just toss in new files and have quickbms pack them all up?
EDIT: on second thought, it doesn't actually say "repack" but instead "re-import", so maybe it is a different concept.
I mean, when you consider a fairly simplistic archive format (which is not too uncommon I think.)
Code: Select all
idstring "blah"
get FILES long
for i = 0 < FILES
get SIZE long
get OFFSET long
getdstring NAME 32
log NAME OFFSET SIZE
next i
If I had some archive format like the above, would I be able to just toss in new files and have quickbms pack them all up?
EDIT: on second thought, it doesn't actually say "repack" but instead "re-import", so maybe it is a different concept.