runtime.Byte · builtin ·

Byte.From

Convert an integer to unsigned 8-bit byte with a range check.

builtincpuyehobyte

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.

Byte.From(integer value) -> byte

Status: registered-intrinsic

Parameters

integer value
An integer value from 0 through 255.

Call Byte.From

A complete typed call with illustrative values; native calls require the indicated host and resources.

cpu · builtin · type checked

byte value = Byte.From(42)
project.mech
manifestVersion = "2"
package = "api.example.runtime__byte_from"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"
Notes and source

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.

yeho/src/compiler/common/intrinsic_registry.cpp:805