WebAssembly.Core.Engine
Elements-assembling engine used internally by WebAssembly.Builder and WebAssembly.DSL.
Summary
| fire() | Fire up the engine accessible within the current Erlang process |
| new_scope() | Open new scope |
| push(value) | Push |
| release_scope() | Release the current scope, merging it with the uplevel one |
| return() | Shutdown the engine and return the assembled structure |
Functions
Specs:
- fire :: :ok
Fire up the engine accessible within the current Erlang process.
Specs:
- new_scope :: :ok
Open new scope.
Specs:
- push(WebAssembly.Types.content) :: :ok
Push value into the current scope.
Specs:
- release_scope :: :ok
Release the current scope, merging it with the uplevel one.
If this was the last scope, prepare the engine for return/0.
Specs:
- return :: [WebAssembly.Types.content]
Shutdown the engine and return the assembled structure.