Module host_data
Expand description
Named data a host supplies on request, for builds that ship large application data (fonts, archives) beside the program instead of inside it. An application asks for a name each time it needs the bytes; a host that can fetch drains the requests, fetches each, installs the bytes or a failure, and relayouts its surfaces so the application asks again. Builds that embed their data never ask, and a host that never drains leaves every request pending.
Enums§
- Status
- Where a requested name stands.
Functions§
- fail
- Report that
namecannot be supplied. - install
- Supply
name’s bytes. - request
- The bytes for
nameif the host supplied them; otherwise records the request (once) and reports it pending or failed. - take_
requests - Names requested since the last call, for the host to fetch.