4 ms·
I wouldn't waste the first byte on a null; make use the all four bytes for a "fourcc" code. Then have a null byte soon after that somewhere.
by kazinator 2y ago
I wouldn't waste the first byte on a null; make use the all four bytes for a "fourcc" code. Then have a null byte soon after that somewhere.
- petertodd 2y agoWell, like I said, I wanted a 32-byte magic so it'd look nice in hex-dumps. So I had plenty of room. OTS proof files typically contain lots of 32-byte hash digests. So "wasting" 32 bytes on magic bytes isn't a big deal.