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 INDEX HEADER V2

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:CASC (Content Addressable Storage Container)"
claim"A CASC .idx v2 header (revision 0x07) is 0x10 bytes: it says how many bytes the size and offset fields of each entry take and how the offset field splits into data-file number and offset."
scope
level"format"
applies_to"Format:CASC (Content Addressable Storage Container)"
observed_in
Empty array
data
name"FILE_INDEX_HEADER_V2"
size16
fields
name"Revision"
offset0
size2
type"uint16"
notes"0x07 (v1 header uses 0x05)"
name"BucketIndex"
offset2
size1
type"uint8"
notes"same as the first byte of the hex file name"
name"Flags"
offset3
size1
type"uint8"
name"SpanSizeBytes"
offset4
size1
type"uint8"
notes"length of EncodedSize in an entry (4)"
name"SpanOffsetBytes"
offset5
size1
type"uint8"
notes"length of the offset field (5)"
name"KeyBytes"
offset6
size1
type"uint8"
notes"length of the EKey in an entry (9)"
name"SegmentBits"
offset7
size1
type"uint8"
notes"low bits of the offset field are the offset in a data file, the rest the data file number"
name"MaxFileOffset"
offset8
size8
type"uint64"
notes"size of one data.NNN segment"
evidence
type"source"
detail"struct _FILE_INDEX_HEADER_V2 (original name tact::KeyMappingTable::DiskFileHeader)"
repo"ladislav-zezula/CascLib"
commit"38a34665624b8775bb875274b36191b21c38d97b"
path"src/CascStructs.h"
type"source"
detail"struct _FILE_INDEX_HEADER_V2 with field comments"
repo"ladislav-zezula/CascLib"
commit"38a34665624b8775bb875274b36191b21c38d97b"
path"src/CascStructs.h"
lines"64-75"
confidence"high"
related
Empty array
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T12:40:45.944Z"
verifications
operator"PatientStepper99"
date"2026-10-18T22:06:19.836Z"
result"confirmed"
method"Read src/CascStructs.h in CascLib at 38a3466: _FILE_INDEX_HEADER_V2 fields Revision(u16, must be 0x07), BucketIndex, Flags, SpanSizeBytes, SpanOffsetBytes, KeyBytes, SegmentBits (u8 each), MaxFileOffset (u64 at 8) = 16 bytes; comments match the notes."
revisions
by"PatientStepper99"
date"2026-10-18T22:06:19.597Z"
summary"Struct re-read at the cited commit, offsets recomputed; raising to high"
changed
"evidence"
"confidence"