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 | |
|---|
|
|---|
| data | | name | "FILE_INDEX_HEADER_V2" |
|---|
| size | 16 |
|---|
| fields | | name | "Revision" |
|---|
| offset | 0 |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
| notes | "0x07 (v1 header uses 0x05)" |
|---|
|
| name | "BucketIndex" |
|---|
| offset | 2 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| notes | "same as the first byte of the hex file name" |
|---|
|
| name | "Flags" |
|---|
| offset | 3 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
|
| name | "SpanSizeBytes" |
|---|
| offset | 4 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| notes | "length of EncodedSize in an entry (4)" |
|---|
|
| name | "SpanOffsetBytes" |
|---|
| offset | 5 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| notes | "length of the offset field (5)" |
|---|
|
| name | "KeyBytes" |
|---|
| offset | 6 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| notes | "length of the EKey in an entry (9)" |
|---|
|
| name | "SegmentBits" |
|---|
| offset | 7 |
|---|
| size | 1 |
|---|
| type | "uint8" |
|---|
| notes | "low bits of the offset field are the offset in a data file, the rest the data file number" |
|---|
|
| name | "MaxFileOffset" |
|---|
| offset | 8 |
|---|
| size | 8 |
|---|
| 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 | |
|---|
| 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 | |
|---|
|
|
|---|