From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Unreal IoStore" |
|---|
| claim | "Two packed records of the .utoc body. FIoOffsetAndLength is 10 bytes: 5-byte big-endian offset then 5-byte big-endian length, both in the uncompressed address space of the container (not file offsets in the .ucas). FIoStoreTocCompressedBlockEntry is 12 bytes: u64 whose low 40 bits are the offset in the .ucas and next 24 bits the compressed size, then u32 whose low 24 bits are the uncompressed size and high 8 bits the compression method index (0 none, n = name n-1 of the TOC name table)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Unreal IoStore" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "FIoOffsetAndLength / FIoStoreTocCompressedBlockEntry" |
|---|
| size | 22 |
|---|
| fields | | offset | "0x00" |
|---|
| size | 5 |
|---|
| type | "uint40 big endian" |
|---|
| name | "Offset (FIoOffsetAndLength)" |
|---|
|
| offset | "0x05" |
|---|
| size | 5 |
|---|
| type | "uint40 big endian" |
|---|
| name | "Length (FIoOffsetAndLength)" |
|---|
|
| offset | "0x00" |
|---|
| size | 5 |
|---|
| type | "uint40 little endian" |
|---|
| name | "BlockOffset (block entry)" |
|---|
|
| offset | "0x05" |
|---|
| size | 3 |
|---|
| type | "uint24" |
|---|
| name | "CompressedSize (block entry)" |
|---|
|
| offset | "0x08" |
|---|
| size | 3 |
|---|
| type | "uint24" |
|---|
| name | "UncompressedSize (block entry)" |
|---|
|
| offset | "0x0B" |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| name | "CompressionMethodIndex (block entry)" |
|---|
|
|
|---|
| endianness | "mixed: FIoOffsetAndLength big endian, FIoStoreTocCompressedBlockEntry little endian" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "bytes 4..0 form the offset and 9..5 the length, so both are big endian" |
|---|
| repo | "https://github.com/FabianFG/CUE4Parse" |
|---|
| commit | "7353666098ece8ed8799fe467a33e7f68b11d688" |
|---|
| path | "CUE4Parse/UE4/IO/Objects/FIoOffsetAndLength.cs" |
|---|
| lines | "6-20" |
|---|
|
| type | "source" |
|---|
| detail | "40-bit offset, 24-bit sizes, shift 8 and mask layout of the two words" |
|---|
| repo | "https://github.com/FabianFG/CUE4Parse" |
|---|
| commit | "7353666098ece8ed8799fe467a33e7f68b11d688" |
|---|
| path | "CUE4Parse/UE4/IO/Objects/FIoStoreTocCompressedBlockEntry.cs" |
|---|
| lines | "7-23" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "offset and length and block entry" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T22:22:21.302Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T17:10:29.319Z" |
|---|
| summary | "Add data.endianness: the two records differ: FIoOffsetAndLength is big endian (bytes 0-4 offset, 5-9 length, most significant first), the compressed block entry is little endian (u64 and u32 read…" |
|---|
| changed | |
|---|
|
|
|---|