{"id":"runtime--Byte.From","name":"Byte.From","owner":"yeho","package":"runtime.Byte","kind":"builtin","signature":"Byte.From(integer value) -> byte","description":"Convert an integer to unsigned 8-bit byte with a range check.","context":"Built into Yeho; no import is needed. These additions have Windows CPU-oracle developer-host evidence. Kyber rejects these operations; this does not qualify Starfish or other targets.","parameters":[{"name":"value","type":"integer","description":"An integer value from 0 through 255."}],"returns":"byte","members":[],"tags":["builtin","cpu","yeho","byte"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":805,"sha256":"e07098e8794c2cde592b3a907d5141cacb101812da91d4a8eb22650739752615"},"status":"registered-intrinsic","notes":["Out-of-range values throw Error with type integer.range. No wrapping or clamping; bool, float and text are rejected.","Contract and host execution evidence: yeho/docs/runtime/hardware-host-tools.md. This small example was type checked, not executed."],"examples":[{"id":"usage","title":"Call Byte.From","description":"A complete typed call with illustrative values; native calls require the indicated host and resources.","code":"byte value = Byte.From(42)\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__byte_from\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu","builtin"],"run":"cpu-oracle","verification":"type checked","sha256":"0855dcfb56ebaedd941fb3d5165d0ea694013b390abf3f686f1d00d189333068","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":"cpu-oracle"}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--Byte.From","json":"https://demonhunterlabs.com/reference/items/runtime--Byte.From.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--Byte.From.md"}
