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
Module.fromBuffer(ByteBuffer buffer) : jsObject = _Module(buffer);