def bytewise.last

bend-kit-hash@0.3.0.2 · hash.bend:120

import bend-kit-hash@0.3.0.2/hash.bend as Hash
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

120def bytewise.last(~T: Type, ~byte: T -> @+c: U32 -> T, +len: U32, acc: T, r: Array<U32> & U32) -> Bytes.Bytes & T:
121  (a, +w) = r
122  (Bytes.Bytes{len, a}, tail(~T, ~byte, U32.to_nat((len .&. 3 : U32)), w, acc))

Uses (8)

Used by (1)