From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:CSO (compressed ISO)" |
|---|
| claim | "In a CSO v1 an index entry's low 31 bits shifted left by index_shift give the block's file offset; the high bit set means the block is stored raw, otherwise it is raw deflate (inflateInit2 window -15). The block length is the next entry minus this one." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:CSO (compressed ISO)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "reading block n of a CISO image" |
|---|
| effect | "offset = (index[n] & 0x7FFFFFFF) << index_shift; end = (index[n+1] & 0x7FFFFFFF) << index_shift; if index[n] & 0x80000000 copy raw, else raw-deflate inflate to block_size bytes" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "ReadBlock: indexPos mask 0x7FFFFFFF, plain = idx & 0x80000000, inflateInit2(&z, -15)" |
|---|
| repo | "hrydgard/ppsspp" |
|---|
| commit | "0c6aa15f9be365bb88265636881814914ee8ac58" |
|---|
| path | "Core/FileSystems/BlockDevices.cpp" |
|---|
| lines | "667-740" |
|---|
|
| type | "documentation" |
|---|
| detail | "index semantics and raw deflate" |
|---|
| repo | "unknownbrackets/maxcso" |
|---|
| commit | "961f232cf99d546b2b7e704c0ecf3fc5bea52221" |
|---|
| path | "README_CSO.md" |
|---|
| lines | "33-46" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "CSO index entry and block decode" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T02:26:28.849Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T04:49:49.719Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read CISOFileBlockDevice::ReadBlock (BlockDevices.cpp 660-740) at the cited commit and README_CSO.md: mask 0x7FFFFFFF << indexShift, next entry gives the end, high bit = plain, inflateInit2(-15). For version 2 PPSSPP decides 'plain' by size instead of the high bit, so the claim holds for v1 only, as it says." |
|---|
|
|
|---|