2 ms·
The footer could work. If you round up the file to some reasonable power-of-two block size and put the footer right at the end of the last block, that would be
by kazinator 7y ago
The footer could work. If you round up the file to some reasonable power-of-two block size and put the footer right at the end of the last block, that would be highly portable; it would work on systems/devices that only write binary files in multiples of a block size (even if you write a short block at the end).