> Offset        Length  Description
> 0     1       Magic Cookie (0x013155a1)
> 1     n       Data
> n+1   m       Directory Table
> m+n+1 1       Offset of beginning of directory table (i.e. n+1)

I think we need a version right after cookie for long term compatibility.

> The directory is after the data so offsets can be determined as the data
> is written.  The directory offset is at the very end, so it can be
> determined before the directory is written, and easily found by loaders.

Having the directory at the end may not be a good choice. It requires to
load everything into memory before parsing. If the directory is in the
front, we can do stream-parsing.

Hong

Reply via email to