def AmlValue.parse_int

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

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

175# a String as an Integer, as ToInteger reads it: hexadecimal after 0x,
176# decimal otherwise
177def AmlValue.parse_int(+wide: Bool, +xs: List<&2, U32>) -> W.W64:
178  val.parse_int.pick(val.has0x(xs), wide, xs)

Uses (6)

Used by (1)