benilla-re systems structs docs

SFileReadSectors

function · storm · orchestration

Address
0x651450 · 1615 bytes, up to 0x651a9e
Meaning
Reads a file's sectors: offset table, decryption, then copy or codec dispatch; any other compression mask fails
Confidence
verified, proof two
Finding
storm/format#block-flags-and-sectors

Finding: Block flags and sectors in storm: the archive format

Flags: 0x100 imploded, 0x200 compressed, 0x10000 encrypted, 0x20000 key adjusted by position, 0x1000000 one unit, 0x2000000 delete marker, 0x80000000 exists. A one-unit file is one sector; any other is cut into sectors of the sector size. A compressed or imploded file starts with count + 1 offsets (dwords) relative to the file; sector i lies between table[i] and table[i + 1]. A sector whose packed size is not below its unpacked size is stored as it is; otherwise 0x200 alone runs the codec dispatch. There is no explode path: any other value of the flags and 0xff00, 0x100 and 0x300 included, fails the sector read.

The derivation is in the doc.

Callers 1

Callees 7

Calls and jumps by a bare address, from tables/calls.tsv.