Create, read, modify, write and execute WebAssembly (WASM) files from .NET-based applications.
BitOperations
are leveraged to accelerate 32 and 64-bit WASM instructions for count of leading 0 bits, count of 1 bits, count of trailing 0 bits, rotate left, and rotate right.Fixed the "WebAssemblyValueType 7 not recognized." error encountered during compilation of some WASMs. Thanks @munik!
.ToString
for instructions now returns the native WebAssembly opcode name.ModuleLoadException
instead of IndexOutOfRangeException
.RuntimeException
is now abstract.ImportException
instead of ArgumentException
.ImportDictionary
's only member, an Add
method, was changed to an extension method, which is binary-breaking but not code-breaking.0
before being made available for use.
Special thanks to @TYoung86 for identifying and fixing this issue.UnmanagedMemory
.
Grow
.
An object revived in this way would leak memory if it was not explicitly Dispose
d before being discarded.