From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Unreal IoStore" |
|---|
| claim | "FIoChunkId is 12 bytes: u64 ChunkId (for package chunks the package id), u16 chunk index (stored big endian, network order), 1 padding byte, 1 byte chunk type. Equality compares only ChunkId and type. A perfect-hash lookup hashes all 12 bytes with FNV-1 style: hash = seed ? seed : 0xcbf29ce484222325; per byte hash = (hash * 0x100000001b3) ^ byte (multiply then xor)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Unreal IoStore" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "FIoChunkId" |
|---|
| size | 12 |
|---|
| fields | | offset | "0x00" |
|---|
| size | 8 |
|---|
| type | "uint64" |
|---|
| name | "ChunkId" |
|---|
|
| offset | "0x08" |
|---|
| size | 2 |
|---|
| type | "uint16 (big endian)" |
|---|
| name | "ChunkIndex" |
|---|
|
| offset | "0x0A" |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| name | "Padding" |
|---|
|
| offset | "0x0B" |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| name | "ChunkType" |
|---|
|
|
|---|
| endianness | "mixed: little except ChunkIndex (u16 big endian, network order)" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct fields, NETWORK_ORDER16 swap in the constructor, HashWithSeed, Equals; the JSON converter at 146-156 writes the 12 bytes in this order" |
|---|
| repo | "https://github.com/FabianFG/CUE4Parse" |
|---|
| commit | "7353666098ece8ed8799fe467a33e7f68b11d688" |
|---|
| path | "CUE4Parse/UE4/IO/Objects/FIoChunkId.cs" |
|---|
| lines | "56-110, 116" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "FIoChunkId layout" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T22:22:21.082Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T17:10:29.241Z" |
|---|
| summary | "Add data.endianness: mixed. ChunkId is read in the file's little-endian order, ChunkIndex is stored big endian (constructor swaps with NETWORK_ORDER16). Layout, 12-byte hash over all bytes and…" |
|---|
| changed | |
|---|
|
|
|---|