def cur.peek

bend-osdev-acpi@0.1.1.0 · aml_interp.bend:273

import bend-osdev-acpi@0.1.1.0/aml_interp.bend as AmlInterp
import Base

273# the next byte, if the list has one
274def cur.peek(c: AmlCur) -> Maybe<&2, U32>:
275  match c:
276    case AmlCur{code, lim}:
277      match lim:
278        case 0n:
279          None{}
280        case 1n+p:
281          List.head(&2, U32, code)

Uses (5)

Used by (2)