benilla-re systems structs docs

CheckAccountData

function · net · orchestration

Address
0x5afa10 · 199 bytes, up to 0x5afad6
Signature
void __fastcall (uint32_t index, const uint8_t *local, uint8_t *cached, const uint8_t *server)
Meaning
Uploads a locally changed section, requests a server-changed one, updates the cached digest and runs a waiting read
Confidence
verified, proof one
Name from
the community database (idb)
Finding
net/accountdata#section-check

Finding: Section check in net: account data

0x5afa10(section, local, cache, server) first clears the section's pending byte. With a zero server digest it uploads the local file when the local digest is not zero. Otherwise, when the local digest differs from the cached one, it uploads when the local digest also differs from the server's; when the local digest equals the cached one, it requests the section if the server's differs. The cached digest becomes the local one, except when the local digest equalled the cached one: then it becomes the server's. If the section is not pending and a read callback is saved, the check runs it; the saved callback stays set.

The derivation is in the doc.

Callers 1

Callees 3

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