def sized

bend-collections@1.0.0.0 · src/crypto/sha/packed/packed.bend:184

import bend-collections@1.0.0.0/src/crypto/sha/packed/packed.bend as Packed
import Base
import bend-collections@1.0.0.0/src/crypto/sha/state.bend as S

184def sized(+length: Nat, pair: Array<U32> & U32) -> Maybe<&2,S.State>:
185  (a,capacity) = pair
186  checked(Nat.is_le(length,Nat.mul(4n,U32.to_nat(capacity))),a,length)

Uses (11)

Used by (2)