def AmlPkgLength.wrap

bend-osdev-acpi@0.1.1.0 · aml_pkglength.bend:168

import bend-osdev-acpi@0.1.1.0/aml_pkglength.bend as AmlPkglength
import Base
import bend-osdev-bytes@0.1.1.0/bytes.bend as B

168# a package: the PkgLength covering it, then its contents
169def AmlPkgLength.wrap(+body: B.Octets) -> B.Octets:
170  +n = B.Octets.len(body)
171  B.Octets.append(AmlPkgLength.encode(U32.from_nat(Nat.add(n, AmlPkgLength.size_for(n)))), body)

Uses (7)

Used by (1)