benilla-re systems structs docs

s_lookupPlatform

global · storm

Address
0x866522 · 1 bytes, up to 0x866522
Type
uint8_t
Meaning
Holds the platform a name lookup asks for, 0; only unreached code writes it
Confidence
verified, proof two
Finding
storm/format#hash-lookup

Finding: Hash lookup in storm: the archive format

The probe starts at slot hash0 & (count − 1) and walks forward with wrap, to the first free slot or back to its start. A slot matches when its two name hashes equal A and B and its block index is not 0xfffffffe. A slot whose locale and platform equal the requested ones (both 0 here) ends the probe at once. Otherwise a slot with locale 0 or the requested locale, and platform 0 or the requested one, becomes the candidate, and a later such slot replaces it. The result is the exact match, else the last candidate, else a miss.

The derivation is in the doc.