2.3.3 FlatEntryList Structure

A FlatEntryList structure gives the number of EntryIDs and their total size, followed by a series of FlatEntry structures.

Extra bytes are included as padding to make sure each FLATENTRY has a 4 byte alignment in FlatEntries. To compute the offset of the next FLATENTRY structure, use the size of the previous entry rounded up to the next multiple of 4 bytes.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Count

Size

FlatEntries (variable)

...

Count (4 bytes): An unsigned integer giving the number of FlatEntry structures in the list.

Size (4 bytes): The total size of all the FlatEntry structures including any padding between FlatEntry structures. Does not include the Count and Size fields.

FlatEntries (variable): A series of FlatEntry structures with the actual EntryID data. The number of structures MUST be exactly the same as the value of the Count field, and their total size MUST be exactly the same as the value of the Size field.