magnetardev / archive

A port of libarchive to WebAssembly, with a simple JS wrapper.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Streamable Reading

magnetardev opened this issue · comments

To some extent, reading a compressed file should be streamed. Right now the lib loads the entire archive into memory, which is... bad. Obviously some compression formats cannot be streamed, though that isn't as big an issue as buffered read.

In theory, libarchive supports this already, by specifying a custom read function: List contents of Archive with custom read functions