benilla-re systems structs docs

s_partialFormat

global · net

Address
0x85dee4 · 11 bytes, up to 0x85deee
Type
char[11]
Meaning
Holds the format %s.partial that names a download's partial file
Confidence
verified, proof one
Finding
net/download#opening-a-download

Finding: Opening a download in net: download

0x5b05f0(path, digest, total, &offset) releases the file it held, keeps the total and the MD5, copies the path, and sets the offset to 0. An existing .partial whose trailer reads resumes: the offset is the bytes received and it returns 1, or, when complete, sets state 2 and returns 0. Otherwise an existing final file that is complete sets state 2, gives the offset +0x20 already held, and returns 0. Otherwise it creates the .partial, sized to the total's low dword plus a trailer, and returns 1; a failed create or resize sets state 3 and returns 0.

The derivation is in the doc.