benilla-re systems structs docs

GetFileObjectExtraBytes

function · storm · unreached

Address
0x648f60 · 67 bytes, up to 0x648fa2
Signature
uint32_t __stdcall (SFileObject *file, uint8_t *out)
Meaning
Copies the 16 bytes at +0x44 of a kind 1 to 4 file object when +0x54 is set; nothing reaches it
Confidence
verified, proof one
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 0

None by a direct call or jump.

Callees 0

None by a direct call or jump.

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