def pkcs7.last

bend-osdev-pkcs7@0.1.0.0 · pkcs7.bend:50

import bend-osdev-pkcs7@0.1.0.0/pkcs7.bend as Pkcs7
import 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

Uses (2)

Used by (2)