codedread/bitjs

Unarchive from a stream of bytes

codedread opened this issue · 3 comments

Today, the unarchivers require the entire ArrayBuffer to be available before it can start unarchiving. This works fine for local files, but for anything else (network fetches) it requires the entire file to be downloaded before unarchiving can begin.

Should investigate reworking the code and API to deal with a stream of bytes.

Commit ec27877 made the BitStream and ByteStreams throw errors if trying to seek past the end.
Commit 26d06e8 made ByteStreams pushable.
Commit 5b10c1a made BitStreams pushable.
Commit 5aa0110 gave the ability for the streams to be teed.

Commit 3c5c9cb Fixed the tee() method and exposed a method to get the amount of data currently in stream.
Commit 9d08824 Allowed Unarchiver objects to have data pushed to them and updated unzip to support streaming bytes.

Commit 9f9cd94 updated unrar for streaming
Commit 3268d3d updated unzip for streaming