def pkcs7.last
import bend-osdev-pkcs7@0.1.0.0/pkcs7.bend as Pkcs7import Base
50# the last byte, or d if there is none
51def pkcs7.last(m: Maybe<&2, U32>, d: U32) -> U32:
52 match m:
53 case Some{b}:
54 b
55 case None{}:
56 d
import bend-osdev-pkcs7@0.1.0.0/pkcs7.bend as Pkcs7import Base
50# the last byte, or d if there is none
51def pkcs7.last(m: Maybe<&2, U32>, d: U32) -> U32:
52 match m:
53 case Some{b}:
54 b
55 case None{}:
56 d