DownloadFileProgress
function · net · primitive
- Address
0x5b0ce0· 124 bytes, up to0x5b0d5b- Signature
float __thiscall (void *this)- Meaning
- Returns the received byte count over the total, both as unsigned 64-bit, or 0 when the total is 0
- Confidence
- verified, proof one
- Finding
- net/download#feeding-a-download
- Test
net::download_progress
Finding: Feeding a download in net: download
0x5b0bc0(data, size) writes the data at the received count's low dword, then adds the size to the count and to +0x144. Past the total it sets state 3, error 1; otherwise, at the total or once +0x144 reaches 1 MiB, it rewrites the trailer. Nothing but 0x5b03f0 resets +0x144, so after the first MiB every feed rewrites it. At the total the MD5 sets state 2 or 3. Without a file, or when the write fails, it returns 0 and sets state 3; else 1. 0x5b0ce0 returns the count over the total as a float, both read as unsigned 64-bit at the x87's 53-bit precision, or 0 for a total of 0.
The derivation is in the doc.
Callers 1
- PollPatchDownload glue
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.