Blake3.full_go: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/crypto/blake/blake3/blake3.bend as Blake3 Lines 113-119 of bend-collections@1.0.0.0/src/crypto/blake/blake3/blake3.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/crypto/blake/blake3/blake3.bend&start_line=113&end_line=119 import Base import bend-collections@1.0.0.0/src/crypto/blake/blake3/types.bend as T import bend-collections@1.0.0.0/src/crypto/blake/blake3/compress.bend as C # A chunk that is not the last: n more full blocks after the current one, the # current block in `pair`; flags is CHUNK_START on the first block and 0 after. # Returns the chunk's chaining value. def full_go(n: Nat, +counter: U32, +index: U32, +flags: U32, cv: T.CV, pair: Array & T.Block) -> Array & T.CV: match n pair: case 0n Tuple{a,b}: (a,C.compress(cv,b,counter,64,U32.or(flags,2))) case 1n+p Tuple{a,b}: full_go(p,counter,U32.add(index,16),0,C.compress(cv,b,counter,64,flags),read_block(a,U32.add(index,16))) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.or https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/blake/blake3/blake3.bend&name=read_block https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/blake/blake3/compress.bend&name=compress https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/blake/blake3/types.bend&name=Block https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/blake/blake3/types.bend&name=CV