Module.fromBuffer constructor
Module.fromBuffer(
- ByteBuffer buffer
Synchronously compiles WebAssembly Module from ByteBuffer source.
Throws a CompileError on invalid module source. Some runtimes do not allow synchronous compilation of modules bigger than 4 KB in the main thread. In such case, an ArgumentError will be thrown.
Implementation
factory Module.fromBuffer(ByteBuffer buffer) =>
Module._fromBytesOrBuffer(buffer);