From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Unreal Engine pak file" |
|---|
| claim | "A bit-encoded entry (pak v10+) starts with a u32: bits 0-5 compression block size in units of 0x800 (0x3F means a u32 with the real size follows), bits 6-21 compression block count, bit 22 encrypted, bits 23-28 compression slot (0 none, n = slot n-1), bits 29/30/31 set when compressed size/uncompressed size/offset fit in 32 bits (then a u32 is stored, else u64). Order after the word: [block size], offset, uncompressed size, compressed size (only if compressed), then u32 block sizes (only if more than one block or encrypted)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Unreal Engine pak file" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "FPakEncodedEntry" |
|---|
| size_min | 12 |
|---|
| fields | | offset | "0x00" |
|---|
| size | 4 |
|---|
| type | "uint32 bitfield" |
|---|
| name | "Flags (bits: 0-5 blocksize>>11, 6-21 blockcount, 22 encrypted, 23-28 compression, 29 size32, 30 uncompressed32, 31 offset32)" |
|---|
|
| offset | "0x04" |
|---|
| size | "4 or 8 each" |
|---|
| type | "offset, uncompressed, compressed" |
|---|
| name | "sizes" |
|---|
|
| offset | "next" |
|---|
| size | "4*n" |
|---|
| type | "uint32[]" |
|---|
| name | "compressed block sizes" |
|---|
|
|
|---|
| endianness | "little" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Entry::read_encoded; write_encoded at 271-330 is the mirror. Block offsets are relative to the entry start and begin after the serialized entry header (get_serialized_size, lines 71-99); encrypted blocks are padded to 16 bytes" |
|---|
| repo | "https://github.com/trumank/repak" |
|---|
| commit | "355b5f62f51959c7cc6dd5a51708646ef483065d" |
|---|
| path | "repak/src/entry.rs" |
|---|
| lines | "194-269" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "pak encoded entry bits" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T22:21:18.442Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T17:10:03.656Z" |
|---|
| summary | "Add data.endianness little (Entry::read_encoded uses read_u32/read_u64::<LE>). Bit layout, field order and the 0x3F block-size escape re-read at entry.rs 194-269 and match." |
|---|
| changed | |
|---|
|
|
|---|