From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:CASC (Content Addressable Storage Container)" |
|---|
| claim | "The ENCODING manifest header (magic 'EN') is 22 bytes with big-endian page sizes in KB and page counts, followed by the ESpec string block." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:CASC (Content Addressable Storage Container)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "FILE_ENCODING_HEADER" |
|---|
| size | 22 |
|---|
| fields | | name | "Magic" |
|---|
| offset | 0 |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
| notes | "0x4E45, bytes 'E' 'N'" |
|---|
|
| name | "Version" |
|---|
| offset | 2 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| notes | "1" |
|---|
|
| name | "CKeyLength" |
|---|
| offset | 3 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| notes | "usually 16" |
|---|
|
| name | "EKeyLength" |
|---|
| offset | 4 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| notes | "usually 16" |
|---|
|
| name | "CKeyPageSize" |
|---|
| offset | 5 |
|---|
| size | 2 |
|---|
| type | "uint8[2]" |
|---|
| notes | "big endian, KB" |
|---|
|
| name | "EKeyPageSize" |
|---|
| offset | 7 |
|---|
| size | 2 |
|---|
| type | "uint8[2]" |
|---|
| notes | "big endian, KB" |
|---|
|
| name | "CKeyPageCount" |
|---|
| offset | 9 |
|---|
| size | 4 |
|---|
| type | "uint8[4]" |
|---|
| notes | "big endian" |
|---|
|
| name | "EKeyPageCount" |
|---|
| offset | 13 |
|---|
| size | 4 |
|---|
| type | "uint8[4]" |
|---|
| notes | "big endian" |
|---|
|
| name | "field_11" |
|---|
| offset | 17 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| notes | "zero" |
|---|
|
| name | "ESpecBlockSize" |
|---|
| offset | 18 |
|---|
| size | 4 |
|---|
| type | "uint8[4]" |
|---|
| notes | "big endian" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct _FILE_ENCODING_HEADER, FILE_MAGIC_ENCODING 0x4E45; offsets computed from the packed byte layout" |
|---|
| repo | "ladislav-zezula/CascLib" |
|---|
| commit | "38a34665624b8775bb875274b36191b21c38d97b" |
|---|
| path | "src/CascStructs.h" |
|---|
|
| type | "source" |
|---|
| detail | "FILE_MAGIC_ENCODING and struct _FILE_ENCODING_HEADER" |
|---|
| repo | "ladislav-zezula/CascLib" |
|---|
| commit | "38a34665624b8775bb875274b36191b21c38d97b" |
|---|
| path | "src/CascStructs.h" |
|---|
| lines | "114-130" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T12:40:46.259Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T22:06:19.910Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read src/CascStructs.h in CascLib at 38a3466: FILE_MAGIC_ENCODING 0x4E45 and _FILE_ENCODING_HEADER fields Magic u16, Version, CKeyLength, EKeyLength, CKeyPageSize[2], EKeyPageSize[2], CKeyPageCount[4], EKeyPageCount[4], field_11, ESpecBlockSize[4]; packed offsets 0,2,3,4,5,7,9,13,17,18 and total 22 recomputed." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-18T22:06:19.684Z" |
|---|
| summary | "Struct re-read at the cited commit, offsets recomputed; raising to high" |
|---|
| changed | |
|---|
|
|
|---|