{"id":"host.storage--CreateEnvironmentHostStorage","name":"CreateEnvironmentHostStorage","owner":"yeho","package":"host.storage","kind":"function","signature":"external CreateEnvironmentHostStorage(text fallbackRoot) returns hostStorageContext","description":"Create environment host storage from the supplied values.","context":"Read and write bounded application storage through the host contract.","parameters":[{"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":80,"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 CreateEnvironmentHostStorage","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 fallbackRoot = \"fallback Root\"\nhostStorageContext result = CreateEnvironmentHostStorage(fallbackRoot)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.host_storage__createenvironmenthoststorage\"\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":"5adfc623d4676f51dced45caa5c3e33ae426ea78b574659aba59e7f370974b28","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=host.storage--CreateEnvironmentHostStorage","json":"https://demonhunterlabs.com/reference/items/host.storage--CreateEnvironmentHostStorage.json","markdown":"https://demonhunterlabs.com/reference/text/host.storage--CreateEnvironmentHostStorage.md"}
