def decode
import bend-kit-archive@0.5.1.0/archive.bend as Archiveimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
273def decode(stored: Bool, +size: U32, raw: Bytes.Bytes) -> IO(Result<&1, &1, U32 & String, Bytes.Bytes>):
274 match stored:
275 case True{}:
276 IO.pure(Result<&1, &1, U32 & String, Bytes.Bytes>, Done{raw})
277 case False{}:
278 inflate.of(size, raw)