Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:CASC (Content Addressable Storage Container)/struct/FILE ENCODING HEADER

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
Empty array
data
name"FILE_ENCODING_HEADER"
size22
fields
name"Magic"
offset0
size2
type"uint16"
notes"0x4E45, bytes 'E' 'N'"
name"Version"
offset2
size1
type"uint8"
notes"1"
name"CKeyLength"
offset3
size1
type"uint8"
notes"usually 16"
name"EKeyLength"
offset4
size1
type"uint8"
notes"usually 16"
name"CKeyPageSize"
offset5
size2
type"uint8[2]"
notes"big endian, KB"
name"EKeyPageSize"
offset7
size2
type"uint8[2]"
notes"big endian, KB"
name"CKeyPageCount"
offset9
size4
type"uint8[4]"
notes"big endian"
name"EKeyPageCount"
offset13
size4
type"uint8[4]"
notes"big endian"
name"field_11"
offset17
size1
type"uint8"
notes"zero"
name"ESpecBlockSize"
offset18
size4
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
Empty array
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
"evidence"
"confidence"