def packed.digest.words

mylsm-lsm-store@0.6.0.1 · src/hub_sha/sha256.bend:196

import mylsm-lsm-store@0.6.0.1/src/hub_sha/sha256.bend as Sha256
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Packed

196def packed.digest.words(words: List<&2, U32>, pair: Packed.Cursor & Bool) -> Packed.Bytes:
197  match words:
198    case Nil{}:
199      packed.digest.finish(pair)
200    case word <> rest:
201      match pair:
202        case (cursor, _) :
203          packed.digest.words(rest, Packed.Cursor.put.u32be(cursor, word))

Uses (9)

Used by (2)