def read

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

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

369# Every entry of a ZIP archive, in central directory order, or the first problem found.
370# Stored (0) and DEFLATE (8) entries only; no ZIP64, encryption, or multi-disk archives.
371# Output past max bytes in total fails with 27 (EFBIG). Malformed ZIP fails with 22 (EINVAL); libz load and allocation errors keep their host codes.
372def read(max: U32, input: Bytes.Bytes) -> IO(Result<&1, &1, U32 & String, List<&1, Entry>>):
373  read.of(headers(input), max)

Uses (10)

Used by (0)

No other definition uses this definition.