From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Qt resource" |
|---|
| claim | "Resource names are hashed with qt_hash over UTF-16 units: h=(h<<4)+c; h^=(h&0xF0000000)>>23; final h&=0x0FFFFFFF; children of a directory are sorted by this hash. Names are stored as uint16 length, uint32 hash, UTF-16BE text." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Qt resource" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "lookup of ':/path' resources" |
|---|
| effect | "binary search among directory children by qt_hash(name)" |
|---|
| condition | "all format versions" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "qt_hash(QStringView)" |
|---|
| repo | "https://github.com/qt/qtbase" |
|---|
| commit | "7faa468198d1d631452db7e5cbfab203cecbdee2" |
|---|
| path | "src/corelib/tools/qhash.cpp" |
|---|
| lines | "1087-1096" |
|---|
|
| type | "source" |
|---|
| detail | "writeDataName and hash-sorted children" |
|---|
| repo | "https://github.com/qt/qtbase" |
|---|
| commit | "7faa468198d1d631452db7e5cbfab203cecbdee2" |
|---|
| path | "src/tools/rcc/rcc.cpp" |
|---|
| lines | "422-462, 1316-1320" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Resource name hash" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T05:04:16.964Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:02:48.083Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read qt_hash(QStringView) (qhash.cpp 1087-1096), RCCFileInfo::writeDataName (rcc.cpp 422-462: u16 length, u32 hash, UTF-16 units written big endian) and qt_rcc_compare_hash (rcc.cpp 1316-1320) at qtbase 7faa468." |
|---|
|
|
|---|