{"id":"host.storage--ResolveHostStorage","name":"ResolveHostStorage","owner":"yeho","package":"host.storage","kind":"function","signature":"external ResolveHostStorage(text family, text explicitRoot, text localAppData, text xdgDataHome, text home, text fallbackRoot) returns hostStorageContext","description":"Resolve host storage.","context":"Read and write bounded application storage through the host contract.","parameters":[{"name":"family","type":"text","description":"Supply family as text."},{"name":"explicitRoot","type":"text","description":"Supply explicit root as text."},{"name":"localAppData","type":"text","description":"Supply local app data as text."},{"name":"xdgDataHome","type":"text","description":"Supply xdg data home as text."},{"name":"home","type":"text","description":"Supply home as text."},{"name":"fallbackRoot","type":"text","description":"Supply fallback root as text."}],"returns":"hostStorageContext","members":[],"tags":["cpu","function","host","host.storage","source-example","storage","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/host/storage/storage.yh","line":64,"sha256":"3e3700536c764b1a475e76cef4245a94d6c188717b14a72d41a2a0464c122bdb"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use ResolveHostStorage","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using host.storage\n\n// Read and write bounded application storage through the host contract.\ntext family = \"cpu\"\ntext explicitRoot = \"explicit Root\"\ntext localAppData = \"local App Data\"\ntext xdgDataHome = \"xdg Data Home\"\ntext home = \"home\"\ntext fallbackRoot = \"fallback Root\"\nhostStorageContext result = ResolveHostStorage(family, explicitRoot, localAppData, xdgDataHome, home, fallbackRoot)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.host_storage__resolvehoststorage\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"host.storage\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/storage\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"db9b80c544b72bd4bafe9c23aca81eb39c558cd4ef70ddc25364b7fdb481149d","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=host.storage--ResolveHostStorage","json":"https://demonhunterlabs.com/reference/items/host.storage--ResolveHostStorage.json","markdown":"https://demonhunterlabs.com/reference/text/host.storage--ResolveHostStorage.md"}
