benilla-re systems structs docs

DownloadFileRelease

function · net · primitive

Address
0x5b0450 · 117 bytes, up to 0x5b04c4
Signature
void __thiscall (void *this, bool deleteFile, bool commit)
Meaning
Releases a download file's handle under its lock, then deletes the file or commits the partial one
Confidence
verified, proof one
Finding
net/download#releasing-a-download
Test
net::download_release

Finding: Releasing a download in net: download

0x5b0450(delete, commit) takes the lock 0xc2a1a0, drops one reference from the file object and from each object its +4 chains to (0x5b04d0), deleting each whose count +8 reaches 0 through slot 0 with 1, and clears +0. It then deletes the file (0x5b04f0), or with commit, for a .partial, renames it to the final path (0x5b0570), which sets state 3, error 1 when the rename fails. 0x5b0550(delete) is the release without a commit and 0x5b0440 without either.

The derivation is in the doc.

Callers 3

Callees 5

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