def val.buf.text

bend-osdev-acpi@0.1.1.0 · aml_value.bend:236

import bend-osdev-acpi@0.1.1.0/aml_value.bend as AmlValue
import Base

236def val.buf.text(xs: List<&2, U32>, first: Bool) -> List<&2, U32>:
237  match xs:
238    case Nil{}:
239      Nil{}
240    case Con{+h, t}:
241      match first:
242        case True{}:
243          Con{val.hex.digit(U32.shrn(h, 4n)), Con{val.hex.digit(U32.and(h, 15)), val.buf.text(t, False{})}}
244        case False{}:
245          Con{32, Con{val.hex.digit(U32.shrn(h, 4n)), Con{val.hex.digit(U32.and(h, 15)), val.buf.text(t, False{})}}}

Uses (6)

Used by (2)