![]() |
mutable
A Database System for Research and Fast Prototyping
|
A WasmModule
is a wrapper around a [Binaryen] (https://github.com/WebAssembly/binaryen) wasm::Module
.
More...
#include <WebAssembly.hpp>
Public Member Functions | |
WasmModule () | |
~WasmModule () | |
WasmModule (const WasmModule &)=delete | |
WasmModule (WasmModule &&)=default | |
::wasm::Module * | ref () |
Returns the underlying [Binaryen] (https://github.com/WebAssembly/binaryen) WASM module. | |
const ::wasm::Module * | ref () const |
Returns the underlying [Binaryen] (https://github.com/WebAssembly/binaryen) WASM module. | |
std::pair< uint8_t *, std::size_t > | binary () const |
Returns the binary representation of this module in a freshly allocated memory. | |
void | dump (std::ostream &out) const |
void | dump () const |
Private Attributes | |
::wasm::Module * | ref_ |
the underlying [Binaryen] (https://github.com/WebAssembly/binaryen) WASM module | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const WasmModule &module) |
Print module in human-readable text format. | |
A WasmModule
is a wrapper around a [Binaryen] (https://github.com/WebAssembly/binaryen) wasm::Module
.
Definition at line 17 of file WebAssembly.hpp.
WasmModule::WasmModule | ( | ) |
Definition at line 17 of file WebAssembly.cpp.
WasmModule::~WasmModule | ( | ) |
Definition at line 19 of file WebAssembly.cpp.
References ref_.
|
delete |
|
default |
std::pair< uint8_t *, std::size_t > WasmModule::binary | ( | ) | const |
Returns the binary representation of this module in a freshly allocated memory.
The caller must dispose of this memory.
Definition at line 21 of file WebAssembly.cpp.
References ref_.
Referenced by dump().
void WasmModule::dump | ( | ) | const |
void WasmModule::dump | ( | std::ostream & | out | ) | const |
Definition at line 36 of file WebAssembly.cpp.
References binary().
|
inline |
Returns the underlying [Binaryen] (https://github.com/WebAssembly/binaryen) WASM module.
Definition at line 29 of file WebAssembly.hpp.
References ref_.
|
inline |
Returns the underlying [Binaryen] (https://github.com/WebAssembly/binaryen) WASM module.
Definition at line 31 of file WebAssembly.hpp.
References ref_.
|
friend |
Print module in human-readable text format.
|
private |
the underlying [Binaryen] (https://github.com/WebAssembly/binaryen) WASM module
Definition at line 20 of file WebAssembly.hpp.
Referenced by binary(), ref(), and ~WasmModule().