TRomDirSortInfo Class Reference

class TRomDirSortInfo

A structure that describes the second part of a ROM directory.

It contains a pair of sorted tables suitable for a binary search. The sorted tables contain unsigned 16-bit scaled offsets, which point to the start of the corresponding TRomEntry in the TRomDir.

TRomDir

Member Data Documentation

TUint16 iEntryOffset

TUint16 iEntryOffset

The two sorted tables:

1. First one is a table of 16-bit scaled offsets to the directory entries.

2. Second one is a table of 16-bit scaled ofsets to the file entries. This table starts at offset 2*iSubDirCount from the start of the first table.

If the offset is X, then the corresponding TRomEntry is at address:
	4*X +(char*)address of the first TRomEntry
For example, the first entry is at offset zero.

The entries are sorted in the order of the UTF-8 representation of the names in a case insensitive way (compare the C function stricmp()). In effect, this folds upper and lowercase ASCII characters but leaves all other Unicode characters unchanged.

TUint16 iFileCount

TUint16 iFileCount

The number of files in this directory.

TUint16 iSubDirCount

TUint16 iSubDirCount

The number of subdirectories in this directory.