benilla-re systems structs docs

SFile::Close

function · storm · orchestration

Address
0x648730 · 126 bytes, up to 0x6487ad
Signature
uint32_t __stdcall (SFileObject *file)
Meaning
Closes an open file's FILE, archive file and kind-4 handle, destroys the object and frees it
Confidence
verified, proof one
Name from
the community database (idb)
Finding
storm/bz#the-file-object

Finding: The file object in storm: compressed loose files

0x647290(kind) builds the object: the kind at +0x00, the lock at +0x24, and 0 in every field but +0x14, +0x20 and +0x44 to +0x50, which keep what the allocation held. A kind-1 open fills the FILE * (+0x04), the path and name copies (+0x0c, +0x10), the inflated size (+0x14), the input buffer (+0x18), the zlib stream (+0x1c), the position (+0x20) and 16 header bytes (+0x44, flagged at +0x54). Other kinds use +0x08, +0x3c and +0x40; +0x58 and +0x5c serve overlapped reads. 0x6472d0 ends the inflate and frees the stream, the copies and the buffer, and deletes the lock; it does not close the FILE *, which only SFile::Close does first.

The derivation is in the doc.

Callers 172

Callees 6

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