def Crc32Spec.update_fast
import bend-osdev-crc@0.1.0.0/table.bend as Tableimport Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-crc@0.1.0.0/crc.bend as C
80# the same as Crc32Spec.update, table-driven
81def Crc32Spec.update_fast(spec: C.Crc32Spec, c: U32, o: B.Octets) -> U32:
82 match spec:
83 case C.Crc32Spec{+width, poly, init, reflected, xorout}:
84 t32.update.go(reflected, width, poly, c, B.Octets.to_list(o))