Re: Magic numbers
Rich Salz <[email protected]> Thu, 18 Jul 2002 22:20:55 -0400
| Newsgroups | gmane.comp.windows.devel.dime |
|---|---|
| Message-ID | <[email protected]> |
> Humor aside, a magic number is usually a number (8-bit to 32-bit) with
> somewhat low probability of showing up at that point in a typical document
> (or stream). I mentioned the potential benefits of a magic number - one
> cannot get those benefits with the version number.
DIME can carry arbitrary binary data, so it is highly doubtful that you
can guess a magic number that is less likely to appear than any other set
of bytes. It also requires a streaming protocol, so making it per-record
(or chunk) doesn't seem necessary.
/r$