def pack

bend-collections@1.0.0.0 · src/crypto/sha/core.bend:207

import bend-collections@1.0.0.0/src/crypto/sha/core.bend as Core
import Base

207def pack(a: U32, b: U32, c: U32, d: U32) -> U32:
208  (U32.shln((a .&. 255 : U32), 24n)
209    .|. U32.shln((b .&. 255 : U32), 16n)
210    .|. U32.shln((c .&. 255 : U32), 8n) .|. (d .&. 255) : U32)

Uses (4)

Used by (87)