def one.put

bend-kit-archive@0.5.1.0 · archive.bend:309

import bend-kit-archive@0.5.1.0/archive.bend as Archive
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

309def one.put(r: Result<&1, &1, U32 & String, Bytes.Bytes>, nm: Bytes.Bytes, +method: U32, +crc: U32, +left: U32, +size: U32, acc: List<&1, Entry>) -> Result<&1, &1, U32 & String, U32 & List<&1, Entry>>:
310  match r:
311    case Fail{e}:
312      Fail{e}
313    case Done{b}:
314      Done{((left - size : U32), Con{Entry{nm, b, method, crc}, acc})}

Uses (9)

Used by (1)