Import with #import "std/zip_linux".

ZStream :: struct { next_in: *u8; avail_in: u32; total_in: usize; next_out: *u8; avail_out: u32; total_out: usize; msg: *u8; state: *void; zalloc: *void; zfree: *void; opaque: *void; data_type: s32; adler: usize; reserved: usize; }
ExtractZipEntry :: (archive: []u8, entry: ZipEntry, output: []u8) -> bool
ZipExtractWriteAll :: (file: FileHandle, bytes: []u8, offset: u64) -> bool
ExtractZipEntryToFile :: (archive: []u8, entry: ZipEntry, file: FileHandle) -> bool

Inflate a classic ZIP entry into a caller-owned file without holding the uncompressed payload in memory. The caller publishes or removes that file.

Source ↗ · All modules