malcolmstill / zware

Zig WebAssembly Runtime Engine
MIT License
293 stars 10 forks source link

separate module decoding state/methods into their own struct #226

Closed marler8997 closed 5 months ago

marler8997 commented 5 months ago

This change moves the state (fixed buffer stream) and methods (decode/read) around decoding a module into a separate struct Decoder so they can be discarded after the module is decoded.

Along with this change, I also fixed a few more things I noticed along the way:

malcolmstill commented 5 months ago

Thanks for this @marler8997