wowserhq / stormjs

StormLib for Javascript, powered by Emscripten
MIT License
14 stars 6 forks source link

Implement file reading #23

Closed fallenoak closed 6 years ago

fallenoak commented 6 years ago

This implements two forms of file reading:

Closes #6

fallenoak commented 6 years ago

@timkurvers Now that I'm thinking of it, pipe() potentially isn't super useful in its current form. It really should yield control back to the main event loop on each chunk. I'll have to ponder a bit more about this, since there's no async FS operations in StormLib.

fallenoak commented 6 years ago

Rewriting to properly use stream.Readable!

timkurvers commented 6 years ago

👍